Introduce removeOrphans to cleanup injected AWS simulation container

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-12-16 10:14:31 +01:00
parent db5467ce22
commit 855a879a6a
No known key found for this signature in database
GPG key ID: 9858809D6F8F6E7E
12 changed files with 63 additions and 32 deletions

View file

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

View file

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