↑ ↓ select, Enter open, Esc close

Show the status of Docker Compose services

Adjust the values, the command updates live
root@server
docker compose -f /opt/app/compose.yaml ps -a

Lists only the containers that belong to this Compose project, with service name, status and ports. With -a, exited containers appear too, so a crashed service does not simply vanish from the list. Inside the project directory, -f can be omitted.

Note: docker compose (with a space) is Compose v2 and comes with Docker from the official repository as the docker-compose-plugin package, on Ubuntu 24.04 also as docker-compose-v2. The Debian 12 package docker.io does not include it.

Also searched as

  • docker compose ps
  • check status of compose services
  • docker compose show stopped containers

Related one-liners

All in Docker

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.