docker-volume-netshare
docker-volume-netshare copied to clipboard
exit status 32
Hi Team,
The command i ran the below command received the Error output
docker run -i -t --volume-driver=nfs -v 10.1.12.123/xbbl47nvol1:/mount ubuntu /bin/bash
INFO[0393] Unmounting volume name 10.1.12.123/xbbl47nvol1 from /var/lib/docker-volumes/netshare/nfs/10.1.12.123/xbbl47nvol1 2017/06/21 03:12:18 umount: /var/lib/docker-volumes/netshare/nfs/10.1.12.123/xbbl47nvol1: not mounted
ERRO[0393] Error unmounting volume from host: exit status 32 Error response from daemon: Cannot start container 8b1aea6119d41a332d972aeaef72464ef5d53f7ac722d77154f776bb57656635: Plugin Error: VolumeDriver.Mount, {"Mountpoint":"","Err":"exit status 32","Volumes":null,"Volume":null,"Capabilities":{"Scope":""}}
same problem here:
root@docker-single-host:/opt# docker run -it --volume-driver=nfs -v 192.168.253.100/srv/nfs4/docker-data:/nfs phusion/baseimage /bin/bash
docker: Error response from daemon: error while mounting volume '/': VolumeDriver.Mount: exit status 32.
root@docker-single-host:/opt# showmount -e 192.168.253.100
Export list for 192.168.253.100:
/srv/nfs4/docker-data 192.168.253.0/24
/srv/nfs4 192.168.253.0/24
root@docker-single-host:/opt# docker --version
Docker version 17.06.1-ce, build 874a737
plugin was installed from
https://github.com/ContainX/docker-volume-netshare/releases/download/v0.20/docker-volume-netshare_0.20_amd64.deb
some additional infos:
root@docker-single-host:/var/lib/docker# mount 192.168.253.100:/srv/nfs4/docker-data /tmp
root@docker-single-host:/var/lib/docker# mountpoint /tmp
/tmp is a mountpoint
root@docker-single-host:/var/lib/docker# ls -la /tmp/
total 24
drwxrwxr-x 6 root root 4096 Aug 28 13:40 .
drwxr-xr-x 23 root root 4096 Aug 28 11:49 ..
drwxr-xr-x 3 root root 4096 Aug 22 17:03 baseimage-debug
drwxr-xr-x 2 root root 4096 Aug 24 17:34 bla
drwxr-xr-x 2 root root 4096 Aug 24 17:39 blablubb
drwxr-xr-x 5 root root 4096 Aug 23 12:53 monitoring
ok, got it. No issue. @Sattera In my case this was issued by the "new" syntax of NFSv4.
Try to use:
docker run -i -t --volume-driver=nfs -v 10.1.12.123/:/mount ubuntu /bin/bash
This should work, for /here is the "root" path of your NFS-Share.
see also: https://help.ubuntu.com/community/NFSv4Howto#NFSv4_Server
Seeing a similar issue here with docker volume create:
seffyroff@rombus:~$ docker volume create -d nfs --name testvol44 -o share=pve:/
testvol44
seffyroff@rombus:~$ docker run -it --rm -v testvol44:/data ubuntu bash
docker: Error response from daemon: error while mounting volume '/var/lib/docker-volumes/netshare/nfs/testvol44': VolumeDriver.Mount: exit status 32.
Issue #133 seems related.
Facing similar issue, can't deploy swarm services using nfs volumes
$ docker volume inspect git_redis
[
{
"CreatedAt": "0001-01-01T00:00:00Z",
"Driver": "nfs",
"Labels": {
"com.docker.stack.namespace": "git"
},
"Mountpoint": "/var/lib/docker-volumes/netshare/nfs/git_redis",
"Name": "git_redis",
"Options": {
"share": "192.168.1.7:/gitlab/redis"
},
"Scope": "local"
}
]
## Testing volume
$ docker run --rm -it -v git_redis:/redis alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
95d54dd4bdad: Already exists
72bf7d76c392: Pull complete
Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0
Status: Downloaded newer image for alpine:latest
docker: Error response from daemon: error while mounting volume '/var/lib/docker-volumes/netshare/nfs/git_redis': VolumeDriver.Mount: exit status 32.
@ulm0 @seffyroff
This issue is fixed with my patch please check the PR.
Hi,
I encountered the same error. However, I think that this can have multiple causes.
How to investigate:
docker-volume-netshare nfs --verbose
This is going to show you the logs.
IMPORTANT: make sure you don't have multiple instances of this process running.
Then simply try to start the desired container and see what the logs tell you.
For me the problem was that I didn't fulfill the prerequisites. NFS needs to be installed on Linux systems in order to properly mount NFS mounts.
- For Ubuntu/Debian:
sudo apt-get install -y nfs-common - For RHEL/CentOS:
sudo yum install -y nfs-utils