mirror of https://github.com/docker/docs.git
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:
parent
5479d4003e
commit
059593c865
|
@ -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 .}}'
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue