1
0
Fork 0
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:
Sally O'Malley 2015-12-02 13:48:59 -05:00
parent 10b30cf09c
commit bfa5027e96

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
}