Skip to content

container-compose ps

List containers for this Compose project.

Synopsis

terminal
container-compose ps [global-options] [options] [services...]

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.

terminal
container-compose ps

List all containers

Show both running and stopped containers.

terminal
container-compose ps --all

Get container IDs only

Useful for scripting.

terminal
container-compose ps -q

See also