1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #18371 from sallyom/dontReturnNonError

don't return error if can't delete non-existing container
This commit is contained in:
David Calavera 2015-12-02 11:59:50 -08:00
commit aa2ca5d93c

View file

@ -627,8 +627,10 @@ func deleteAllContainers() error {
return err
}
if err = deleteContainer(containers); err != nil {
return err
if containers != "" {
if err = deleteContainer(containers); err != nil {
return err
}
}
return nil
}