How to list all currently running docker containers?
To list all currently running docker containers run
docker_ps.sh
docker ps
If no containers are running, this will give you this output:
docker_ps_empty.txt
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
In case some containers are running, there will be additional lines listing the container like
docker_ps_example.txt
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1bd0a1461b38 bitnami/mariadb:latest "/entrypoint.sh /run…" 6 minutes ago Up 6 minutes 3306/tcp mydb
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow