How to list docker containers

Knowledge Base - How To

How to list docker containers in linux

To see the full list

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES some_id some_image "some_command" some_time some_status some_port some_name

to get only the IDs

docker ps -aq

some_id

to chose the columns using the above headers

docker ps --format '{{.Names}}'

some_name