Browse Source

Merge pull request #2150 from pnasrat/fix-mnt-subdir-volumes

Fixes issues with mounting subdirectories of /mnt in container.
Michael Crosby 11 năm trước cách đây
mục cha
commit
e70030a0c3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      lxc_template.go

+ 2 - 0
lxc_template.go

@@ -81,6 +81,8 @@ lxc.cgroup.devices.allow = c 10:200 rwm
 {{end}}
 
 # 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
 #           if your userspace allows it. eg. see http://blog.zx2c4.com/749
 lxc.mount.entry = proc {{$ROOTFS}}/proc proc nosuid,nodev,noexec 0 0