mirror of https://github.com/docker/compose.git
don't fail when trying to remove an orphan container during down command
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
55b1b9976b
commit
b6b58d26c1
|
@ -270,7 +270,7 @@ func (s *composeService) removeContainers(ctx context.Context, w progress.Writer
|
|||
Force: true,
|
||||
RemoveVolumes: volumes,
|
||||
})
|
||||
if err != nil {
|
||||
if err != nil && !errdefs.IsNotFound(err) {
|
||||
w.Event(progress.ErrorMessageEvent(eventName, "Error while Removing"))
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue