Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

docker compose ls Command

docker compose ls Command

Docker Command ReferenceDocker Command Reference


The docker compose ls command is used to list all Docker Compose projects in the current system and their status.

The docker compose ls command helps you quickly see which Compose projects are running or in other states.

Syntax

docker compose ls [OPTIONS]

OPTIONS:

Output information:

docker compose ls The output information includes the following fields:

Example

1. List all running Docker Compose projects



docker compose ls

Show all currently running projects and their status.

2. List all projects (including those that are not started)



docker compose ls --all

Show all Compose projects, including those that are not started.

3. Show only project names



docker compose ls --quiet

Only returns project names, without detailed information.

4. Filter projects by status



docker compose ls --filter "status=running"

Only shows projects with status running.


Docker Command ReferenceDocker Command Reference