YouTip LogoYouTip

Docker Compose Ls Command

# docker compose ls command [![Image 3: Docker CommandComplete Guide](#)Docker CommandComplete Guide](#) * * * The `docker compose ls` command is used to list all Docker Compose projects and their statuses in the current system. The `docker compose ls` command helps you quickly check which Compose projects are running or in other states. ### Syntax ```bash docker compose ls **OPTIONS:** * `--all`: Displays all projects, including those that are not running. * `--filter`: Filters output results based on conditions. For example, you can filter by status. * `--format`: Specifies the output format (such as `table`, `json`, etc.). * `--quiet`: Only displays project names without additional information. **Output Information:** The output of `docker compose ls` includes the following fields: * **Name**: Project name. * **Status**: Project status (e.g., `running`, `exited`, etc.). * **Config Files**: Path to the `docker-compose.yml` file associated with the project. ### Examples **1. List all running Docker Compose projects** ```bash docker compose ls Displays all currently running projects and their statuses. **2. List all projects (including those not running)** ```bash docker compose ls --all Shows all Compose projects, including those that are not running. **3. Display only project names** ```bash docker compose ls --quiet Returns only project names without detailed information. **4. Filter projects by status** ```bash docker compose ls --filter "status=running" Only shows projects with a status of `running`. * * Docker CommandComplete Guide](#) AI is thinking... [](#)(#) (#)[](#) [Volcengine Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., offering official direct access for stable and reliable performance. Configuration guide Β₯9.9/month. Open now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Linux Shell TestLinux Shell Printf β†’