Shows current and exited containers for the project.

Section: Debugging and Troubleshooting

List all containers including stopped

bash
bash
docker compose ps -a
Explanation

Helpful for identifying crash loops and one-off exits.

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 Debugging and Troubleshooting
Start ephemeral debug shell
Launches a temporary debug shell using the service image.
OpenIn sheetbashsame section
Validate effective config
Checks whether the Compose config is valid without printing it.
OpenIn sheetbashsame section
View recent logs since time
Shows recent logs for a specific service.
OpenIn sheetbashsame section
Inspect runtime env
Prints environment variables inside the running service.
OpenIn sheetbashsame section
Print container mounts and settings
Inspects the underlying container created for a service.
OpenIn sheetbashsame section
Watch files and sync/rebuild
Watches project files and applies sync or rebuild actions when configured.
OpenIn sheetbash2 tag match