Explorar o código

set name from project config when recreating container

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof %!s(int64=4) %!d(string=hai) anos
pai
achega
e71c833d79
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/compose/convergence.go

+ 1 - 0
pkg/compose/convergence.go

@@ -368,6 +368,7 @@ func (s *composeService) recreateContainer(ctx context.Context, project *types.P
 	if inherit {
 		inherited = &replaced
 	}
+	name = getContainerName(project.Name, service, number)
 	created, err = s.createMobyContainer(ctx, project, service, name, number, inherited, false, true)
 	if err != nil {
 		return created, err