diff --git a/container.go b/container.go index 87df0d46b4..cb697e825e 100644 --- a/container.go +++ b/container.go @@ -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) } diff --git a/runtime.go b/runtime.go index f838e77ffe..52690dcb7f 100644 --- a/runtime.go +++ b/runtime.go @@ -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) }