mirror of https://github.com/docker/docs.git
Merge pull request #5643 from crosbymichael/fix-native-pid
Set container pid for process in native driver
This commit is contained in:
commit
41b2874b99
|
@ -122,6 +122,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
|
||||||
return &c.Cmd
|
return &c.Cmd
|
||||||
}, func() {
|
}, func() {
|
||||||
if startCallback != nil {
|
if startCallback != nil {
|
||||||
|
c.ContainerPid = c.Process.Pid
|
||||||
startCallback(c)
|
startCallback(c)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue