mirror of
https://github.com/docker/compose.git
synced 2026-10-21 19:33:28 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue