Ad space (banner)
AD

Got the fundamentals? A structured Docker course is a fast way to level up.

Find Docker courses on Udemy

Affiliate link. Costs you nothing extra.

🐳Docker Lessons
Lesson 9 / 45

Listing Running Containers with docker ps

When you want to know what is running right now, use docker ps. It lists the currently running containers.

The syntax is docker ps. The name comes from the Linux ps command for listing processes.

Running docker ps shows CONTAINER ID, IMAGE, COMMAND, STATUS, PORTS and NAMES for each running container.

A common stumble is expecting to find a container you started earlier and seeing nothing — because it has already exited. Stopped containers need docker ps -a.

In real work, it is the first command you run to check the state of things.

Docker
Try it (type this into the pseudo terminal)
docker ps

🧑‍💻 You can type this command into the Docker pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)