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:
Guillaume Lours 2022-10-06 15:10:19 +02:00 committed by Nicolas De loof
parent 55b1b9976b
commit b6b58d26c1
1 changed files with 1 additions and 1 deletions

View File

@ -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
}