Docker Cheat Sheet/List containers

List running containers with the container namespace.

Section: Containers

List containers

bash
bash
docker container ls
Explanation

Object-oriented alias for `docker ps`.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Containers
List running containers
List running containers.
OpenIn sheetbashsame section
List all containers
List running and stopped containers.
OpenIn sheetbashsame section
Run a container
Create and start a new container.
OpenIn sheetbashsame section
Run detached
Run a container in the background.
OpenIn sheetbashsame section
Run interactively
Run an interactive shell inside a new container.
OpenIn sheetbashsame section
Publish a port
Publish a container port to the host.
OpenIn sheetbashsame section