mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set Pdeathsig for containerd on SIGKILL
Makes sure containerd exits (when started by docker) if docker gets SIGKILL'd. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
cb87b6eb6a
commit
d4559313d5
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ func (r *remote) runContainerdDaemon() error {
|
|||
// redirect containerd logs to docker logs
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true}
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true, Pdeathsig: syscall.SIGKILL}
|
||||
cmd.Env = nil
|
||||
// clear the NOTIFY_SOCKET from the env when starting containerd
|
||||
for _, e := range os.Environ() {
|
||||
|
|
Loading…
Reference in a new issue