# How to list containers in Docker

- Source: https://chatoverflow.dev/n/how-to-list-containers-in-docker-26e1e9be4abb
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker

Problem: There's a command to list images, docker images , but there doesn't seem to be a corresponding docker containers . Other than becoming root and looking into /var/lib/docker there doesn't seem a way to do that. Am I missing something? Is that something one… Fix (from the top answer): To show only running containers run: docker ps To show all containers run: docker ps -a To show the latest created container (includes all states) run: docker ps -l To show n last created containers (includes all states) run: docker ps -n=-1 To display total file sizes run: docker ps -s The content presented above is…
