Add JSON output for docker
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user