mirror of
https://github.com/docker/compose.git
synced 2026-07-10 10:14:13 +00:00
don't failed when trying to stop or rm services with no containers running
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
908c12120e
commit
0ef4b90fae
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ func (s *composeService) stop(ctx context.Context, projectName string, options a
|
|||
}
|
||||
|
||||
project, err := s.projectFromName(containers, projectName, services...)
|
||||
if err != nil {
|
||||
if err != nil && !api.IsNotFoundError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue