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:
commit
aa2ca5d93c
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue