mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
pass All option to backend api.Service when length statuses is not equal to zero
Signed-off-by: 1arp <dekhijaegi@gmail.com>
This commit is contained in:
parent
4ce63f53f7
commit
3ba66453d2
@ -113,7 +113,7 @@ func runPs(ctx context.Context, dockerCli command.Cli, backend api.Service, serv
|
|||||||
|
|
||||||
containers, err := backend.Ps(ctx, name, api.PsOptions{
|
containers, err := backend.Ps(ctx, name, api.PsOptions{
|
||||||
Project: project,
|
Project: project,
|
||||||
All: opts.All,
|
All: opts.All || len(opts.Status) != 0,
|
||||||
Services: services,
|
Services: services,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user