diff --git a/container/main.go b/container/main.go index 62fb9e2..a576e70 100644 --- a/container/main.go +++ b/container/main.go @@ -110,9 +110,7 @@ func (c *Container) Stop() { } func (c *Container) Remove() { - if c.Meta["state"] == "exited" { - if err := c.manager.Remove(); err != nil { - log.Warningf("container %s: %v", c.Id, err) - } + if err := c.manager.Remove(); err != nil { + log.Warningf("container %s: %v", c.Id, err) } } diff --git a/menus.go b/menus.go index 47eaece..cb1cbcd 100644 --- a/menus.go +++ b/menus.go @@ -129,7 +129,7 @@ func ContainerMenu() MenuFn { if c.Meta["state"] == "running" { items = append(items, menu.Item{Val: "stop", Label: "stop"}) } - if c.Meta["state"] == "exited" { + if c.Meta["state"] == "exited" || c.Meta["state"] == "created" { items = append(items, menu.Item{Val: "start", Label: "start"}) items = append(items, menu.Item{Val: "remove", Label: "remove"}) }