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

Check out similar posts by category: Container, Docker, Linux