mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Fix libcontainer states
Move initialized to created and destoryed to stopped. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -116,7 +116,8 @@ information is displayed once every 5 seconds.`,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if status == libcontainer.Destroyed {
|
||||
if status == libcontainer.Stopped {
|
||||
fatalf("container with id %s is not running", container.ID())
|
||||
return fmt.Errorf("container with id %s is not running", container.ID())
|
||||
}
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user