Update devices_unix.go for LXD

getDevices() has been updated to skip `/dev/.lxc` and `/dev/.lxd-mounts`, which was breaking privileged Docker containers running on runC, inside of LXD managed Linux Containers

Signed-off-by: Carlton-Semple <carlton.semple@ibm.com>
This commit is contained in:
Carlton Semple
2017-02-14 13:27:26 -05:00
committed by Carlton-Semple
parent 4f21aea40d
commit 9a7e5a9434
+1 -1
View File
@@ -75,7 +75,7 @@ func getDevices(path string) ([]*configs.Device, error) {
switch {
case f.IsDir():
switch f.Name() {
case "pts", "shm", "fd", "mqueue":
case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts":
continue
default:
sub, err := getDevices(filepath.Join(path, f.Name()))