update typos and style in docs
Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
5ba998d6b4
commit
5eac07b103
@ -38,7 +38,7 @@ exist with the same name, making the result ambiguous.
|
||||
To restrict `docker inspect` to a specific type of object, use the `--type`
|
||||
option.
|
||||
|
||||
The following example inspects a _volume_ named "myvolume"
|
||||
The following example inspects a volume named `myvolume`.
|
||||
|
||||
```console
|
||||
$ docker inspect --type=volume myvolume
|
||||
@ -117,7 +117,7 @@ the template language's `index` function does. The `.NetworkSettings.Ports`
|
||||
section contains a map of the internal port mappings to a list of external
|
||||
address/port objects. To grab just the numeric public port, you use `index` to
|
||||
find the specific port map, and then `index` 0 contains the first object inside
|
||||
of that. Then we ask for the `HostPort` field to get the public address.
|
||||
of that. Then, specify the `HostPort` field to get the public address.
|
||||
|
||||
```console
|
||||
$ docker inspect --format='{{(index (index .NetworkSettings.Ports "8787/tcp") 0).HostPort}}' $INSTANCE_ID
|
||||
|
||||
Reference in New Issue
Block a user