command error

"volume-opt=o=10.0.0.10,rw,nfsvers=4,async" should be  "volume-opt=o=addr=10.0.0.10,rw,nfsvers=4,async"
This commit is contained in:
aliray 2020-11-06 18:51:23 +08:00 committed by GitHub
parent 0a951c5204
commit 9a416422b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,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=:/var/docker-nfs,"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=addr=10.0.0.10,rw,nfsvers=4,async"' \
nginx:latest
```