Ensure that native containers die with the parent
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
c0d5c529bb
commit
fd8470acba
1 changed files with 3 additions and 5 deletions
|
@ -48,11 +48,9 @@ func (ns *linuxNs) Init(container *libcontainer.Container, uncleanRootfs, consol
|
||||||
return fmt.Errorf("setctty %s", err)
|
return fmt.Errorf("setctty %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
if err := system.ParentDeathSignal(); err != nil {
|
||||||
if err := system.ParentDeathSignal(); err != nil {
|
return fmt.Errorf("parent death signal %s", err)
|
||||||
return fmt.Errorf("parent death signal %s", err)
|
}
|
||||||
}
|
|
||||||
*/
|
|
||||||
if err := setupNewMountNamespace(rootfs, console, container.ReadonlyFs); err != nil {
|
if err := setupNewMountNamespace(rootfs, console, container.ReadonlyFs); err != nil {
|
||||||
return fmt.Errorf("setup mount namespace %s", err)
|
return fmt.Errorf("setup mount namespace %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue