mirror of https://github.com/docker/docs.git
Formatting fixes
This commit is contained in:
parent
0937284ec7
commit
1dc817611b
|
@ -175,13 +175,13 @@ active tasks.
|
||||||
|
|
||||||
You can inspect the service to view the virtual IP. For example:
|
You can inspect the service to view the virtual IP. For example:
|
||||||
|
|
||||||
```bash{% raw %}
|
```liquid
|
||||||
$ docker service inspect \
|
$ docker service inspect \
|
||||||
--format='{{json .Endpoint.VirtualIPs}}' \
|
--format='{% raw %}{{json .Endpoint.VirtualIPs}}{% endraw %}' \
|
||||||
my-web
|
my-web
|
||||||
|
|
||||||
[{"NetworkID":"7m2rjx0a97n88wzr4nu8772r3" "Addr":"10.0.0.2/24"}]
|
[{"NetworkID":"7m2rjx0a97n88wzr4nu8772r3" "Addr":"10.0.0.2/24"}]
|
||||||
{% endraw %}```
|
```
|
||||||
|
|
||||||
The following example shows how you can add a `busybox` service on the same
|
The following example shows how you can add a `busybox` service on the same
|
||||||
network as the `nginx` service and the busybox service is able to access `nginx`
|
network as the `nginx` service and the busybox service is able to access `nginx`
|
||||||
|
@ -234,7 +234,7 @@ the busybox container:
|
||||||
available DNS query tool.
|
available DNS query tool.
|
||||||
|
|
||||||
5. From inside the busybox container, query the DNS using a special query
|
5. From inside the busybox container, query the DNS using a special query
|
||||||
<tasks.SERVICE-NAME> to find the IP addresses of all the containers for the
|
<tasks.SERVICE-NAME> to find the IP addresses of all the containers for the
|
||||||
`my-web` service:
|
`my-web` service:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue