Bug 1468249 - [docker] Enable knob /proc/sys/fs/may_detach_mounts upon installation
[docker] Enable knob /proc/sys/fs/may_detach_mounts upon installation
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Lokesh Mandvekar
: Extras
Depends On: 1441737
Blocks: 1441743 1542672
  Show dependency treegraph
Reported: 2017-07-06 09:03 EDT by Vivek Goyal
Modified: 2018-02-06 14:01 EST (History)
8 users (show)

See Also:
Fixed In Version: docker-1.12.6-41.1.gitf55a118.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1441737
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Comment 2 Vivek Goyal 2017-07-06 09:09:23 EDT
runc package drops following file.


And enables /proc/sys/fs/may_detach_mounts

We need this for docker as well.

By default installing docker does not install runc so this does not get enabled. 

We have two options.

- Either drop similar config file drom docker package.
- Or pull in runc when installing docker.

Hmmm..., may be first one is little light weight solution. So how about dropping another file from docker package says /usr/lib/sysctl.d/99-docker.conf
Comment 3 Vivek Goyal 2017-07-06 09:11:04 EDT
Lokesh, will you be able to take care of this please.
Comment 4 Ed Santiago 2017-07-06 15:20:29 EDT

   # cat /proc/sys/fs/may_detach_mounts

   # yum install docker
     docker.x86_64 2:1.12.6-41.1.gitf55a118.el7
   # cat /proc/sys/fs/may_detach_mounts
   # rpm -q runc
   package runc is not installed

Note You need to log in before you can comment on or make changes to this bug.