Skip to main content

What does docker ps -a show?

Entry Docker
Quick Answer docker ps shows running containers. docker ps -a shows ALL containers รขโ‚ฌโ€ running, stopped, and exited. Stopped containers still exist on disk with their data until you explicitly remove them with docker rm. This is how you recover a crashed container's logs or inspect what went wrong.

Answer

docker ps -a lists all containers including running, stopped, and exited ones, useful for debugging.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice