Add JSON output for docker

This commit is contained in:
2021-10-06 12:38:35 +02:00
parent b14ed6de29
commit a06a58f79a

View File

@@ -1 +1,11 @@
# docker # docker
## Output format
You can change the output format of any (?) docker command to JSON by using the following parameter:
```
docker ps -a --format '{{json .}}'
```
It uses the Go templating engine.