diff --git a/container.go b/container.go index f900599d00..bd5e10ac5b 100644 --- a/container.go +++ b/container.go @@ -356,6 +356,9 @@ func (container *Container) monitor() { } func (container *Container) kill() error { + if container.cmd == nil { + return nil + } if err := container.cmd.Process.Kill(); err != nil { return err }