From bed7999a699c5f3f1883998364589a0520e37a13 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Tue, 24 Dec 2024 10:47:32 +0100 Subject: [PATCH] When retrying to resolveOrCreateNetwork, retry with a valid network name Signed-off-by: Guillaume Tardif --- pkg/compose/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index e26937ee5c..0c6606c946 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -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 }