mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
Fix ignore -q flag in docker ps when there is a default format.
Docker ps default format should not take precedence over cli flags. This happens effectively for other flags except `-q`. We need to let the cli to set the format as table to print the expected output with `-q`. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
|
||||
|
||||
f := *format
|
||||
if len(f) == 0 {
|
||||
if len(cli.PsFormat()) > 0 {
|
||||
if len(cli.PsFormat()) > 0 && !*quiet {
|
||||
f = cli.PsFormat()
|
||||
} else {
|
||||
f = "table"
|
||||
|
||||
Reference in New Issue
Block a user