Skip to content

Commit

Permalink
pass All option to backend api.Service when length statuses is not eq…
Browse files Browse the repository at this point in the history
…ual to zero

Signed-off-by: 1arp <dekhijaegi@gmail.com>
  • Loading branch information
1arp committed Feb 8, 2024
1 parent aaa7ef6 commit d720d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/compose/ps.go
Expand Up @@ -113,7 +113,7 @@ func runPs(ctx context.Context, dockerCli command.Cli, backend api.Service, serv

containers, err := backend.Ps(ctx, name, api.PsOptions{
Project: project,
All: opts.All,
All: opts.All || len(opts.Status) != 0,
Services: services,
})
if err != nil {
Expand Down

0 comments on commit d720d22

Please sign in to comment.