2021-03-08 15:47:24 +01:00
|
|
|
command: docker compose ps
|
|
|
|
short: List containers
|
2021-06-08 09:39:49 +02:00
|
|
|
long: "Lists containers for a Compose project, with current status and exposed ports.\n\n```\n$
|
|
|
|
docker compose ps\nNAME SERVICE STATUS PORTS\nexample_foo_1
|
|
|
|
\ foo running (healthy) 0.0.0.0:8000->80/tcp\nexample_bar_1
|
|
|
|
\ bar exited (1) \n```"
|
2021-03-08 15:47:24 +01:00
|
|
|
usage: docker compose ps
|
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
|
|
|
- option: all
|
|
|
|
shorthand: a
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: |
|
|
|
|
Show all stopped containers (including those created by the run command)
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: format
|
|
|
|
value_type: string
|
|
|
|
default_value: pretty
|
|
|
|
description: 'Format the output. Values: [pretty | json].'
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: quiet
|
|
|
|
shorthand: q
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Only display IDs
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: services
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Display services
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|