From 35d08bdd01e3c63414d7998efc0813803e2ba5d9 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 28 May 2014 20:27:03 +0200 Subject: [PATCH] Revert "Remove the bind mount for dev/console which override the mknod/label" This reverts commit ae85dd54582e94d36b146ab1688844ed58cc8df3. Docker-DCO-1.1-Signed-off-by: Alexander Larsson (github: alexlarsson) --- pkg/libcontainer/console/console.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/libcontainer/console/console.go b/pkg/libcontainer/console/console.go index 62edbfde8a..5f06aea225 100644 --- a/pkg/libcontainer/console/console.go +++ b/pkg/libcontainer/console/console.go @@ -40,6 +40,9 @@ 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 }