Docker and CI/CD · Junior · Question 11 of 75

How do you see stopped containers as well as running ones?

Explanation

docker ps shows only running containers. Stopped ones keep their filesystem and logs until you remove them with docker rm (or start them with --rm).

Further reading

Problem with a question

Docker and CI/CD · Junior · question 11

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz