Add println to formatting doc (#5960)

Add documentation for printing values on separate line.
Useful when multiples volumes are mounted or when a container has multiple IPAddress

See docker/docker.github.io#35887

Signed By : Yash Jain <ydjainopensource@gmail.com>
This commit is contained in:
ydjainopensource 2018-02-09 01:05:34 +05:30 committed by Misty Stanley-Jones
parent 0bdd490620
commit 9d908e7653
1 changed files with 9 additions and 0 deletions

View File

@ -62,3 +62,12 @@ It puts a separator between each element in the list.
{% raw %}
$ docker inspect --format "{{upper .Name}}" container
{% endraw %}
## println
`println` prints each value on a new line.
{% raw %}
$ docker inspect --format='{{range .NetworkSettings.Networks}}{{println .IPAddress}}{{end}}' container
{% endraw %}