Przeglądaj źródła

Set container pid for process in native driver
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)

Michael Crosby 11 lat temu
rodzic
commit
62e8ddb579
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      daemon/execdriver/native/driver.go

+ 1 - 0
daemon/execdriver/native/driver.go

@@ -122,6 +122,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
 		return &c.Cmd
 	}, func() {
 		if startCallback != nil {
+			c.ContainerPid = c.Process.Pid
 			startCallback(c)
 		}
 	})