Open ehudkaldor opened 7 years ago
update: tried also with armhf/alpine as the base image, same result
Does this work with ubuntu or debian? I remember having problems with mounting nfs inside containers before. Does dmesg
give any hints?
One workaound might be to mount the nfs share on the host and then bind mount it with docker run --volume ...
exec mount nfs in docker container
failed: Connection refused
dmesg: svc: failed to register lockdv1 RPC service (errno 111)
I am setting up an NFS server container, on Raspberry-PI. everything seems ok, including showmount, but when i do a straightforward mount, i get connection refused. forcing NFSv3 (mount -o nfsvers=3) succeeds. any insight? Dockerfile:
entrypoint.sh:
/etc/exports:
run command (/mnt/sda1 is mounted with a directory that contains, amongst others, /music):
docker run -it --rm -p 111:111/tcp -p 111:111/udp -p 2049:2049/tcp -p 34567:34567/tcp -p 34567:34567/udp -p 34568:34568/tcp -p 34568:34568/udp --privileged -v /mnt/sda1:/exports -v /root/docker/file-server/exports:/etc/exports --name file-server2 ehudkaldor/rpi-file-server:0.3
showmount:
mount (defaults to nfs4):
forcing NFSv3:
any insight?