set name from project config when recreating container

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-09-13 08:32:02 +02:00 committed by Nicolas De loof
parent a0bff8be96
commit e71c833d79
1 changed files with 1 additions and 0 deletions

View File

@ -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