docker ps: showing multiple-lines for each container makes it difficult to see.
How to select columns to display like sql?
docker ps -a ID,NAME,STATUS
Use --format:
docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
CONTAINER ID NAMES STATUS
Also please read the help section: docker ps --help which references:
https://docs.docker.com/go/formatting/
table
table specifies which fields you want to see its output.
$ docker image list --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With