Fix libcontainer states

Move initialized to created and destoryed to stopped.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2016-05-13 17:01:12 -07:00
parent 3fe7d7f31e
commit 30f1006b33
5 changed files with 20 additions and 30 deletions
+2 -1
View File
@@ -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 (