diff --git a/libcontainer/devices/devices_unix.go b/libcontainer/devices/devices_unix.go index 61c0c0c605a..f44e62ce8cd 100644 --- a/libcontainer/devices/devices_unix.go +++ b/libcontainer/devices/devices_unix.go @@ -75,7 +75,8 @@ func getDevices(path string) ([]*configs.Device, error) { switch { case f.IsDir(): switch f.Name() { - case "pts", "shm", "fd", "mqueue": + // ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825 + case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts": continue default: sub, err := getDevices(filepath.Join(path, f.Name()))