mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
don't return error if can't delete non-existing container
Signed-off-by: Sally O'Malley <somalley@redhat.com>
This commit is contained in:
parent
10b30cf09c
commit
bfa5027e96
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