mirror of https://github.com/docker/docs.git
Merge pull request #314 from aluzzardi/store-remove-container-fix
Do not fail when destroying a container if it's not found in the store.
This commit is contained in:
commit
aad324a7a1
|
@ -62,6 +62,7 @@ func (c *Cluster) DestroyContainer(container *Container, force bool) error {
|
|||
if err := c.store.Remove(container.Id); err != nil {
|
||||
if err == state.ErrNotFound {
|
||||
log.Debugf("Container %s not found in the store", container.Id)
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue