| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- command: docker compose ps
- short: List containers
- long: "Lists containers for a Compose project, with current status and exposed ports.\n\n```console\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```"
- usage: docker compose ps [SERVICE...]
- 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: filter
- value_type: string
- description: Filter services by a property
- 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
- - option: status
- value_type: string
- description: Filter services by status
- deprecated: false
- experimental: false
- experimentalcli: false
- kubernetes: false
- swarm: false
- deprecated: false
- experimental: false
- experimentalcli: false
- kubernetes: false
- swarm: false
|