Skip to content

Commit

Permalink
When retrying to resolveOrCreateNetwork, retry with a valid network name
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
  • Loading branch information
gtardif committed Dec 24, 2024
1 parent 8f644ee commit bed7999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ func (s *composeService) ensureNetwork(ctx context.Context, project *types.Proje
if errdefs.IsConflict(err) {
// Maybe another execution of `docker compose up|run` created same network
// let's retry once
return s.resolveOrCreateNetwork(ctx, project, "", n)
return s.resolveOrCreateNetwork(ctx, project, name, n)
}
return id, err
}
Expand Down

0 comments on commit bed7999

Please sign in to comment.