mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
ENGDOCS-1764
Signed-off-by: aevesdocker <allie.sadler@docker.com>
This commit is contained in:
parent
328ca3f239
commit
9631a49daa
30 changed files with 89 additions and 90 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# docker compose ps
|
||||
|
||||
<!---MARKER_GEN_START-->
|
||||
List containers
|
||||
List containers.
|
||||
|
||||
### Options
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ NAME IMAGE COMMAND SERVICE CREATED STATUS
|
|||
example-foo-1 alpine "/entrypoint.…" foo 4 seconds ago Up 2 seconds 0.0.0.0:8080->80/tcp
|
||||
```
|
||||
|
||||
By default, only running containers are shown. `--all` flag can be used to include stopped containers
|
||||
By default, only running containers are shown. `--all` flag can be used to include stopped containers.
|
||||
|
||||
```console
|
||||
$ docker compose ps --all
|
||||
|
|
@ -53,7 +53,7 @@ $ docker compose ps --format json
|
|||
```
|
||||
|
||||
The JSON output allows you to use the information in other tools for further
|
||||
processing, for example, using the [`jq` utility](https://stedolan.github.io/jq/){:target="_blank" rel="noopener" class="_"}
|
||||
processing, for example, using the [`jq` utility](https://stedolan.github.io/jq/)
|
||||
to pretty-print the JSON:
|
||||
|
||||
```console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue