Browse code

Refine the volume mount example

The path here should be absolute, else it would
deem it as volume name.

Also link to release page to contain static binary,
the old link not work, because it is just used to
install docker in os distro, it can not be used
as static binary directly.

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>

Kai Qiang Wu(Kennan) authored on 2016/01/19 14:30:33
Showing 1 changed files
... ...
@@ -195,12 +195,13 @@ a container writes files. The `--read-only` flag mounts the container's root
195 195
 filesystem as read only prohibiting writes to locations other than the
196 196
 specified volumes for the container.
197 197
 
198
-    $ docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v ./static-docker:/usr/bin/docker busybox sh
198
+    $ docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/static-docker-binary:/usr/bin/docker busybox sh
199 199
 
200 200
 By bind-mounting the docker unix socket and statically linked docker
201
-binary (such as that provided by [https://get.docker.com](
202
-https://get.docker.com)), you give the container the full access to create and
203
-manipulate the host's Docker daemon.
201
+binary (refer to [get the linux binary](
202
+../../installation/binaries.md#get-the-linux-binary)),
203
+you give the container the full access to create and manipulate the host's
204
+Docker daemon.
204 205
 
205 206
 ### Publish or expose port (-p, --expose)
206 207