You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to mount a locally exported NFS share, but am getting permissions errors every time:
root@ubuntu:/home/user# docker run -i -t --volume-driver=nfs -v 127.0.0.1/mnt/info:/tmp ubuntu /bin/bash
docker: Error response from daemon: chown /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info: operation not permitted.
DEBU[0141] Host path for 127.0.0.1/mnt/info is at /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
DEBU[0141] Entering Mount: {127.0.0.1/mnt/info map[]}
INFO[0141] Mounting NFS volume 127.0.0.1:/mnt/info on /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
DEBU[0141] Mounting with NFSv4 - src: 127.0.0.1:/mnt/info, dest: /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
DEBU[0141] exec: mount -v -t nfs4 127.0.0.1:/mnt/info /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
DEBU[0142] Entering Unmount: {127.0.0.1/mnt/info map[]}
INFO[0142] Unmounting volume name 127.0.0.1/mnt/info from /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
INFO[0142] Removing un-managed volume
What is curious is that if I mount directly it works:
root@ubuntu:/home/user# mount -v -t nfs4 127.0.0.1:/mnt/info /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
mount.nfs4: mount point /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info does not exist
root@ubuntu:/home/user# mkdir /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
root@ubuntu:/home/user# mount -v -t nfs4 127.0.0.1:/mnt/info /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
mount.nfs4: timeout set for Fri Sep 2 16:04:45 2016
mount.nfs4: trying text-based options 'addr=127.0.0.1,clientaddr=127.0.0.1'
root@ubuntu:/home/user# ls /var/lib/docker-volumes/netshare/nfs/127.0.0.1/mnt/info
README
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Looks like netshare is not running as root? It must have rights to create the directory the mount is going too and since it runs as a system process it typically needs root.
I am trying to mount a locally exported NFS share, but am getting permissions errors every time:
What is curious is that if I mount directly it works:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: