Merge pull request #7670 from SimonHeimberg/patch-1

Show hint how to find out what data can be printed
This commit is contained in:
Anne Henmi 2018-12-26 09:51:01 -07:00 committed by GitHub
commit 0ede8278d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -87,3 +87,13 @@ 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:
{% raw %}
```
docker container ls --format='{{json .}}'
```
{% endraw %}