Add JSON output for docker

This commit is contained in:
michael committed 2021-10-06 12:38:35 +02:00
1 parent b14ed6de29
commit a06a58f79a
1 file changed
+10
+10
View File
@@ -1 +1,11 @@
# 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.