Browse code

Fix the incorrect links in the document about network and service

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/10/21 00:40:36
Showing 2 changed files
... ...
@@ -56,10 +56,10 @@ $ docker node update --label-add type=queue worker1
56 56
 
57 57
 The labels you set for nodes using `docker node update` apply only to the node
58 58
 entity within the swarm. Do not confuse them with the docker daemon labels for
59
-[dockerd]( ../../userguide/labels-custom-metadata.md#daemon-labels).
59
+[dockerd](https://docs.docker.com/engine/userguide/labels-custom-metadata/#daemon-labels).
60 60
 
61 61
 For more information about labels, refer to [apply custom
62
-metadata](../../userguide/labels-custom-metadata.md).
62
+metadata](https://docs.docker.com/engine/userguide/labels-custom-metadata/).
63 63
 
64 64
 ## Related information
65 65
 
... ...
@@ -118,7 +118,7 @@ $ docker service create \
118 118
 When you run a [service update](service_update.md), the scheduler updates a
119 119
 maximum of 2 tasks at a time, with `10s` between updates. For more information,
120 120
 refer to the [rolling updates
121
-tutorial](../../swarm/swarm-tutorial/rolling-update.md).
121
+tutorial](https://docs.docker.com/engine/swarm/swarm-tutorial/rolling-update/).
122 122
 
123 123
 ### Set environment variables (-e, --env)
124 124
 
... ...
@@ -142,7 +142,7 @@ $ docker service create \
142 142
 ```
143 143
 
144 144
 For more information about labels, refer to [apply custom
145
-metadata](../../userguide/labels-custom-metadata.md).
145
+metadata](https://docs.docker.com/engine/userguide/labels-custom-metadata/).
146 146
 
147 147
 ### Add bind-mounts or volumes
148 148
 
... ...
@@ -231,7 +231,7 @@ The following options can only be used for named volumes (`type=volume`);
231 231
 | Option                | Description
232 232
 |:----------------------|:--------------------------------------------------------------------------------------------------------------------
233 233
 | **volume-driver**     | Name of the volume-driver plugin to use for the volume. Defaults to ``"local"``, to use the local volume driver to create the volume if the volume does not exist.
234
-| **volume-label**      | One or more custom metadata ("labels") to apply to the volume upon creation. For example, `volume-label=mylabel=hello-world,my-other-label=hello-mars`. For more information about labels, refer to [apply custom metadata](../../userguide/labels-custom-metadata.md).
234
+| **volume-label**      | One or more custom metadata ("labels") to apply to the volume upon creation. For example, `volume-label=mylabel=hello-world,my-other-label=hello-mars`. For more information about labels, refer to [apply custom metadata](https://docs.docker.com/engine/userguide/labels-custom-metadata/).
235 235
 | **volume-nocopy**     | By default, if you attach an empty volume to a container, and files or directories already existed at the mount-path in the container (`dst`), the Engine copies those files and directories into the volume, allowing the host to access them. Set `volume-nocopy` to disables copying files from the container's filesystem to the volume and mount the empty volume.<br /><br />A value is optional:<ul><li>`true` or `1`: Default if you do not provide a value. Disables copying.</li><li>`false` or `0`: Enables copying.</li></ul>
236 236
 | **volume-opt**        | Options specific to a given volume driver, which will be passed to the driver when creating the volume. Options are provided as a comma-separated list of key/value pairs, for example, `volume-opt=some-option=some-value,some-other-option=some-other-value`. For available options for a given driver, refer to that driver's documentation.
237 237
 
... ...
@@ -390,7 +390,7 @@ $ docker service create \
390 390
 The swarm extends my-network to each node running the service.
391 391
 
392 392
 Containers on the same network can access each other using
393
-[service discovery](../../swarm/networking.md#use-swarm-mode-service-discovery).
393
+[service discovery](https://docs.docker.com/engine/swarm/networking/#use-swarm-mode-service-discovery).
394 394
 
395 395
 ### Publish service ports externally to the swarm (-p, --publish)
396 396
 
... ...
@@ -410,7 +410,7 @@ $ docker service create --name my_web --replicas 3 --publish 8080:80 nginx
410 410
 When you publish a service port, the swarm routing mesh makes the service
411 411
 accessible at the target port on every node regardless if there is a task for
412 412
 the service running on the node. For more information refer to
413
-[Use swarm mode routing mesh](../../swarm/ingress.md).
413
+[Use swarm mode routing mesh](https://docs.docker.com/engine/swarm/ingress/).
414 414
 
415 415
 ## Related information
416 416