mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Retrieve compose failure category by exit code
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
d8aa00a766
commit
db38d1244c
5 changed files with 29 additions and 10 deletions
|
|
@ -78,7 +78,7 @@ func runRemove(ctx context.Context, backend compose.Service, opts removeOptions,
|
|||
}
|
||||
|
||||
reosurces, err := backend.Remove(ctx, project, compose.RemoveOptions{
|
||||
DryRun: true,
|
||||
DryRun: true,
|
||||
Services: services,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ func runStop(ctx context.Context, backend compose.Service, opts stopOptions, ser
|
|||
}
|
||||
_, err = progress.Run(ctx, func(ctx context.Context) (string, error) {
|
||||
return "", backend.Stop(ctx, project, compose.StopOptions{
|
||||
Timeout: timeout,
|
||||
Timeout: timeout,
|
||||
Services: services,
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue