From fd5a5dc56f0adb79583955435f0e4ba95b3c7b11 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Tue, 13 May 2014 11:59:27 -0700 Subject: [PATCH] Remove the bind mount for dev/console which override the mknod/label Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes (github: creack) --- libcontainer/console/console.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcontainer/console/console.go b/libcontainer/console/console.go index 5f06aea..62edbfd 100644 --- a/libcontainer/console/console.go +++ b/libcontainer/console/console.go @@ -40,9 +40,6 @@ func Setup(rootfs, consolePath, mountLabel string) error { if err := label.SetFileLabel(consolePath, mountLabel); err != nil { return fmt.Errorf("set file label %s %s", dest, err) } - if err := system.Mount(consolePath, dest, "bind", syscall.MS_BIND, ""); err != nil { - return fmt.Errorf("bind %s to %s %s", consolePath, dest, err) - } return nil }