mirror of https://github.com/docker/docs.git
Merge pull request #7670 from SimonHeimberg/patch-1
Show hint how to find out what data can be printed
This commit is contained in:
commit
0ede8278d2
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue