mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
now we use directly the Docker CLI to run autoremove flag should be pass as is
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
804ef4af5b
commit
fcff36fc8a
@ -89,7 +89,7 @@ func (s *composeService) prepareRun(ctx context.Context, project *types.Project,
|
|||||||
updateServices(&service, observedState)
|
updateServices(&service, observedState)
|
||||||
|
|
||||||
created, err := s.createContainer(ctx, project, service, service.ContainerName, 1,
|
created, err := s.createContainer(ctx, project, service, service.ContainerName, 1,
|
||||||
opts.Detach && opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive)
|
opts.AutoRemove, opts.UseNetworkAliases, opts.Interactive)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user