Show hint how to find out what data can be printed

This hint is unnecessary for inspect commands since this is the default. But for other commands, I regularly find out again this trick.
This commit is contained in:
Simon Heimberg 2018-11-13 08:55:42 +01:00 committed by GitHub
parent 5479d4003e
commit 059593c865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -87,3 +87,10 @@ docker inspect --format "{{upper .Name}}" container
docker inspect --format='{{range .NetworkSettings.Networks}}{{println .IPAddress}}{{end}}' container
```
{% endraw %}
# Hint
To find out what data can be printed, show all content as json:
```
docker container ls --format='{{json .}}'
```