mirror of https://github.com/docker/docs.git
This commit is contained in:
parent
b210a7295f
commit
2b1ab09694
|
@ -149,7 +149,6 @@ after running the first one.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name devtest \
|
--name devtest \
|
||||||
--mount source=myvol2,target=/app \
|
--mount source=myvol2,target=/app \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -160,7 +159,6 @@ $ docker run -d \
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name devtest \
|
--name devtest \
|
||||||
-v myvol2:/app \
|
-v myvol2:/app \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -263,7 +261,6 @@ The `--mount` and `-v` examples have the same end result.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name=nginxtest \
|
--name=nginxtest \
|
||||||
--mount source=nginx-vol,destination=/usr/share/nginx/html \
|
--mount source=nginx-vol,destination=/usr/share/nginx/html \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -274,7 +271,6 @@ $ docker run -d \
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name=nginxtest \
|
--name=nginxtest \
|
||||||
-v nginx-vol:/usr/share/nginx/html \
|
-v nginx-vol:/usr/share/nginx/html \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -319,7 +315,6 @@ The `--mount` and `-v` examples have the same result.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name=nginxtest \
|
--name=nginxtest \
|
||||||
--mount source=nginx-vol,destination=/usr/share/nginx/html,readonly \
|
--mount source=nginx-vol,destination=/usr/share/nginx/html,readonly \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -330,7 +325,6 @@ $ docker run -d \
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name=nginxtest \
|
--name=nginxtest \
|
||||||
-v nginx-vol:/usr/share/nginx/html:ro \
|
-v nginx-vol:/usr/share/nginx/html:ro \
|
||||||
nginx:latest
|
nginx:latest
|
||||||
|
@ -408,7 +402,6 @@ must use the `--mount` flag to mount the volume, rather than `-v`.**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-it \
|
|
||||||
--name sshfs-container \
|
--name sshfs-container \
|
||||||
--volume-driver vieux/sshfs \
|
--volume-driver vieux/sshfs \
|
||||||
--mount src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
|
--mount src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
|
||||||
|
|
Loading…
Reference in New Issue