Docker and CI/CD · Junior · Question 11 of 75
How do you see stopped containers as well as running ones?
- ✓Correct answer:
docker ps -a - 2
docker ps --stopped - 3
docker images -a
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).