mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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…
x
Reference in New Issue
Block a user