From cdee2dd67c2be064c9ff2a7fc31364cea601e4ef Mon Sep 17 00:00:00 2001 From: jureaky Date: Wed, 1 Apr 2020 01:13:08 +0900 Subject: [PATCH] Fix wrong device path in NFSv4 volume example (#10429) In section Create a service which creates an NFS volume, NFSv3 command states right device path(:/var/docker-nfs), but NFSv4 command is not configured to refer that path. So updated the path. --- storage/volumes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/volumes.md b/storage/volumes.md index 0262952b09..5ed93c3410 100644 --- a/storage/volumes.md +++ b/storage/volumes.md @@ -463,7 +463,7 @@ $ docker service create -d \ ```bash docker service create -d \ --name nfs-service \ - --mount 'type=volume,source=nfsvolume,target=/app,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/,"volume-opt=o=10.0.0.10,rw,nfsvers=4,async"' \ + --mount 'type=volume,source=nfsvolume,target=/app,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/var/docker-nfs,"volume-opt=o=10.0.0.10,rw,nfsvers=4,async"' \ nginx:latest ```