Question By
Solved

How to check what docker containers are running?

Solved
bitmap

Jul 23rd, 2020 05:27 PM

Hi DevDojo community,

I'm new to Docker, what is the best way of finding out what docker containers are running?

Thanks!

Report
1
bobbyiliev

Jul 23rd, 2020 05:30 PM

Best Answer

Hi there,

You can find all of your running containers using the following command:

sudo docker ps

If you wanted to check all containers even the ones that are stopped or have crashed you could just add the -a argument:

sudo docker ps -a

I would also recommend going through this Introduction to Docker blog post series here.

Another useful resoure would be this article here:

9 Basic Docker Commands with Examples

Hope that this helps!

Report
2