Fix missing "type=bind" in bind-mount examples (#4217)

The examples were missing the `type` option; given
that `type=volume` is the default, this was resulting in
the examples producing an error.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2017-08-16 19:17:00 +02:00 committed by Misty Stanley-Jones
parent 423051f125
commit f8f42d2848
1 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ first one.
$ docker run -d \ $ docker run -d \
-it \ -it \
--name devtest \ --name devtest \
--mount source=$(pwd)/target,target=/app \ --mount type=bind,source=$(pwd)/target,target=/app \
nginx:latest nginx:latest
``` ```
@ -182,7 +182,7 @@ The `--mount` and `-v` examples have the same end result.
$ docker run -d \ $ docker run -d \
-it \ -it \
--name broken-container \ --name broken-container \
--mount source=/tmp,target=/usr \ --mount type=bind,source=/tmp,target=/usr \
nginx:latest nginx:latest
docker: Error response from daemon: oci runtime error: container_linux.go:262: docker: Error response from daemon: oci runtime error: container_linux.go:262:
@ -237,7 +237,7 @@ The `--mount` and `-v` examples have the same result.
$ docker run -d \ $ docker run -d \
-it \ -it \
--name devtest \ --name devtest \
--mount source=$(pwd)/target,target=/app,readonly \ --mount type=bind,source=$(pwd)/target,target=/app,readonly \
nginx:latest nginx:latest
``` ```
@ -325,8 +325,8 @@ The `--mount` and `-v` examples have the same result.
$ docker run -d \ $ docker run -d \
-it \ -it \
--name devtest \ --name devtest \
--mount source=$(pwd)/target,target=/app \ --mount type=bind,source=$(pwd)/target,target=/app \
--mount source=$(pwd)/target,target=/app2,readonly,bind-propagation=rslave \ --mount type=bind,source=$(pwd)/target,target=/app2,readonly,bind-propagation=rslave \
nginx:latest nginx:latest
``` ```
@ -412,7 +412,7 @@ The `--mount` and `-v` examples have the same result.
$ docker run -d \ $ docker run -d \
-it \ -it \
--name devtest \ --name devtest \
--mount source=$(pwd)/target,destination=/app,consistency=cached \ --mount type=bind,source=$(pwd)/target,destination=/app,consistency=cached \
nginx:latest nginx:latest
``` ```