mirror of https://github.com/docker/compose.git
set name from project config when recreating container
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
a0bff8be96
commit
e71c833d79
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue