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:
Victor Vieux 2015-01-27 12:21:25 -08:00
commit aad324a7a1
1 changed files with 1 additions and 0 deletions

View File

@ -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
}