mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Introduce removeOrphans to cleanup injected AWS simulation container
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
db5467ce22
commit
855a879a6a
12 changed files with 63 additions and 32 deletions
|
|
@ -52,7 +52,7 @@ func runDown(ctx context.Context, opts composeOptions) error {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return projectName, c.ComposeService().Down(ctx, projectName)
|
||||
return projectName, c.ComposeService().Down(ctx, projectName, false)
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ func runCreateStart(ctx context.Context, opts composeOptions, services []string)
|
|||
fmt.Println("Gracefully stopping...")
|
||||
ctx = context.Background()
|
||||
_, err = progress.Run(ctx, func(ctx context.Context) (string, error) {
|
||||
return "", c.ComposeService().Down(ctx, project.Name)
|
||||
return "", c.ComposeService().Down(ctx, project.Name, false)
|
||||
})
|
||||
}
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue