зеркало из https://github.com/microsoft/docker.git
Revert "Remove the bind mount for dev/console which override the mknod/label"
This reverts commit ae85dd5458
.
Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
This commit is contained in:
Родитель
2330be2adc
Коммит
35d08bdd01
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче