From 9a7e5a94346df545be991330196ed4d65adcbb26 Mon Sep 17 00:00:00 2001 From: Carlton Semple Date: Tue, 14 Feb 2017 13:27:26 -0500 Subject: [PATCH] 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 --- libcontainer/devices/devices_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/devices/devices_unix.go b/libcontainer/devices/devices_unix.go index 61c0c0c60..9e07f57ed 100644 --- a/libcontainer/devices/devices_unix.go +++ b/libcontainer/devices/devices_unix.go @@ -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()))