Hello,
I’m getting an error I don’t understand when trying to create a service and mounting
an NFS volume.
$ docker service create --mount 'type=volume,target=/mnt,volume-driver=local,volume-opt=type=nfs,volume-opt=device=10.30.216.171:/shares/sw,"volume-opt=o=addr=10.30.216.171,ro"' --name fedora1 fedora /bin/bash
2rq5ey158alq7w4p2fmvtb0wt
burkm@astatine:~ $ docker service ps --no-trunc fedora1
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
7hyn9t4x2il8gsnt3fn4nths5 fedora1.1 fedora:latest@sha256:8d3f642aa4d3fa8f9dc52ab0e3bbbe8bc2494843dc6ebb26c4a6958db888e5a2 beryllium.example.com Ready Rejected 1 second ago "chown /var/lib/docker/volumes/62432f95250cd875cdb58ed62c417709e3b3df453c6cff40a35fd3edd39f442d/_data: read-only file system"
x47yiy8jhqhhnc9ugv53ex6eu \_ fedora1.1 fedora:latest@sha256:8d3f642aa4d3fa8f9dc52ab0e3bbbe8bc2494843dc6ebb26c4a6958db888e5a2 beryllium.example.com Shutdown Rejected 1 second ago "chown /var/lib/docker/volumes/2e300ff43e02d428c2d0375a69947c5d94aaf74e4050b021a64f8c7bde435542/_data: read-only file system"
The volume it is referring to doesn’t exist either, so I can’t inspect it.
Any ideas?