mirror of https://github.com/docker/docs.git
Update volumes.md (#4492)
Only a minor error --it -> -it unknown flag: --it I get a message error if I try to reproduce it. WARN[0000] `--volume-driver` is ignored for volumes specified via `--mount`. Use `--mount type=volume,volume-driver=...` instead. docker: Error response from daemon: create sshvolume: invalid option key: "sshcmd". docker -v Docker version 17.06.1-ce, build 874a737 Maybe the syntax are changed?
This commit is contained in:
parent
daa8ce8948
commit
bb4a4345aa
|
|
@ -407,7 +407,7 @@ must use the `--mount` flag to mount the volume, rather than `-v`.**
|
|||
|
||||
```bash
|
||||
$ docker run -d \
|
||||
--it \
|
||||
-it \
|
||||
--name sshfs-container \
|
||||
--volume-driver vieux/sshfs \
|
||||
--mount src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
|
||||
|
|
|
|||
Loading…
Reference in New Issue