mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Populate command in ghost state to pass to RestoreCommand
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
ba8ca59862
commit
8723a8a89e
2 changed files with 3 additions and 2 deletions
|
@ -1122,7 +1122,8 @@ func (container *Container) monitor(callback execdriver.StartCallback) error {
|
|||
|
||||
if container.command == nil {
|
||||
// This happends when you have a GHOST container with lxc
|
||||
err = container.runtime.WaitGhost(container)
|
||||
populateCommand(container)
|
||||
err = container.runtime.RestoreCommand(container)
|
||||
} else {
|
||||
exitCode, err = container.runtime.Run(container, callback)
|
||||
}
|
||||
|
|
|
@ -809,7 +809,7 @@ func (runtime *Runtime) Kill(c *Container, sig int) error {
|
|||
return runtime.execDriver.Kill(c.command, sig)
|
||||
}
|
||||
|
||||
func (runtime *Runtime) WaitGhost(c *Container) error {
|
||||
func (runtime *Runtime) RestoreCommand(c *Container) error {
|
||||
return runtime.execDriver.Restore(c.command)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue