Update volumes.md

[CORRECTION] --volume-driver <type> is ignored when using --mount. Updated instruction code to fix.
This commit is contained in:
Daniel Ramirez 2024-03-14 15:10:24 -07:00 committed by GitHub
parent 3556183aff
commit 5e6d7b44ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -466,8 +466,7 @@ Each volume driver may have zero or more configurable options.
```console
$ docker run -d \
--name sshfs-container \
--volume-driver vieux/sshfs \
--mount src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
--mount type=volume,volume-driver=vieux/sshfs,src=sshvolume,target=/app,volume-opt=sshcmd=test@node2:/home/test,volume-opt=password=testpassword \
nginx:latest
```