mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixes issues with mounting subdirectories of /mnt in container.
Tested with mkdir /mnt/data docker run -v /mnt/data:/mnt/data -t ubuntu:12.10 touch /mnt/data/bar Expected /mnt/data/bar on host.
This commit is contained in:
parent
c1bb33ea4d
commit
aa3697520a
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ lxc.cgroup.devices.allow = c 10:200 rwm
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
# standard mount point
|
# standard mount point
|
||||||
|
# Use mnt.putold as per https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986385
|
||||||
|
lxc.pivotdir = lxc_putold
|
||||||
# WARNING: procfs is a known attack vector and should probably be disabled
|
# WARNING: procfs is a known attack vector and should probably be disabled
|
||||||
# if your userspace allows it. eg. see http://blog.zx2c4.com/749
|
# if your userspace allows it. eg. see http://blog.zx2c4.com/749
|
||||||
lxc.mount.entry = proc {{$ROOTFS}}/proc proc nosuid,nodev,noexec 0 0
|
lxc.mount.entry = proc {{$ROOTFS}}/proc proc nosuid,nodev,noexec 0 0
|
||||||
|
|
Loading…
Reference in a new issue