mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
enable remove action for "created" state containers
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user