Forrest logo
back to the docker tool

docker:tldr:4df73

docker: List all running containers.
$ docker compose ps
try on your machine

The docker compose ps command is used to display the status of containers that are defined in the docker-compose.yml file and are currently running.

When you execute the docker compose ps command, it will query the Docker Compose configuration in the current directory and find all the services defined in the docker-compose.yml file. It then displays information about each container associated with those services.

The output of this command includes details such as the service name, container ID, image used, command being executed, the status of the container, and the port bindings. This information can be helpful to check if all the containers are running as expected or to troubleshoot any issues related to the containers defined in the docker-compose.yml file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the docker tool