FS#77837 - [docker] The -q flag no longer works since upgrade with a customised psFormat

Attached to Project: Community Packages
Opened by Michel Albert (exhuma) - Monday, 13 March 2023, 06:10 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 23 May 2023, 06:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Sébastien Luttringer (seblu)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When the config file contains the following the `ps -q` format stops working (it worked before an upgrade):

```
{
"psFormat": "table {{.Image}}\t{{.Status}}\t{{.Names}}\t{{.Ports}}"
}
```

Expected outcome: Running `docker ps -q` should only list the container IDs of running containers.

Observed outcome: Running `docker ps -q` show the exact same output as running `docker ps` (without -q`). It includes the header and additional columns. It does not show the docker-id.


Additional info:
* package version: docker 1:23.0.1-1
* config and/or log files etc.
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 23 May 2023, 06:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  docker 1:24.0.0-1
Comment by Toolybird (Toolybird) - Monday, 13 March 2023, 19:49 GMT
https://github.com/docker/cli/issues/4093

It's clearly an upstream issue...which means PM's might just close this ticket while waiting for upstream to fix it.

Loading...