mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set container pid for process in native driver
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
d7166536e7
commit
62e8ddb579
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue