I’m using Docker on Windows version 17.03.1-ce and trying to use the NFS volume driver to give access to an NFS share to a Linux container.
I create the volume using the command
C:\> docker volume create --driver local --opt type=nfs --opt o=nfsvers=3,addr=1.2.3.4,rw --opt device=:/r_drive --name=test-vol
but when I try and test this with this command
C:\> docker run -it --rm --network host -v test-vol:/storage alpine:latest sh
Docker hangs and eventually times out with the following error
docker: Error response from daemon: error while mounting volume '/var/lib/docker/volumes/test-vol/_data': error while mounting volume with options: type='nfs' device=':/r_drive' o='nfsvers=3,addr=1.2.3.4,rw': connection timed out.
time="2017-06-16T16:28:01+01:00" level=error msg="error getting events from daemon: net/http: request canceled"
The NFS server is working correctly as I can mount the share from an actual Linux host using the same options.
Am I missing something here?