container-compose ps¶
List containers for this Compose project.
Synopsis¶
Options¶
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--file |
-f |
path | The path to your Docker Compose file | |
--quiet |
-q |
flag | Only display container IDs | |
--all |
flag | Include stopped containers | ||
--profile |
string | Specify a profile to enable. Can be specified multiple times. |
Arguments¶
| Argument | Description |
|---|---|
services |
Filter output to specific services |
Examples¶
List running containers¶
Show all running containers for the current project.
List all containers¶
Show both running and stopped containers.
Get container IDs only¶
Useful for scripting.