Comments (4)
Okay, one more update.
I wasn't aware that rpcbind
is basically part of nfs.
On ubuntu systems, nfs-common
seems to be pre-installed which also installes and enables rpcbind
.
As such docker-nfs silently fails in host-mode or complains when trying to bind to 111
.
Solution: Either remove nfs-common
if you don't need it or systemctl mask rpcbind
from docker-nfs-server.
Solution: Either remove nfs-common if you don't need it or systemctl mask rpcbind
On top of systemctl mask rpcbind
, I also had to:
systemctl stop rpcbind.socket
systemctl disable rpcbind.socket
from docker-nfs-server.
Hello and my apologies for the super-long delay in responding.
A quick look at your docker-compose.yml
indicates that you perhaps forgot to expose the container ports. i.e. it should look something like this:
version: '3'
services:
nfs:
container_name: nfs
image: erichough/nfs-server:latest
network_mode: 'host'
privileged: true
volumes:
# Config
- '/docker/data/nfs/exports:/etc/exports:ro'
# Shares
- '/mnt/Backups:/Backups'
- '/mnt/Documents:/Documents'
- '/mnt/Multimedia:/Multimedia'
restart: unless-stopped
# THESE LINES ARE MISSING ...
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvv
ports:
- 2049:2049
- 2049:2049/udp
- 111:111
- 111:111/udp
- 32765:32765
- 32765:32765/udp
- 32767:32767
- 32767:32767/udp
Give that a try?
from docker-nfs-server.
No worries and thanks for getting back to me.
I am using network_mode: 'host'
though so I really shouldn't need that.
I tested anyways (removing host mode) and as expected I have the exact same issue.
Edit:
I just figured out the issue. It's rpcbind
which runs on port uses port 111
.
If I start the container in host
mode, nothing ever complains but silently fails to bind to that port.
When testing earlier using port-mapping I used non-existing nfs-paths as I restructured some stuff some time ago.
from docker-nfs-server.
Related Issues (20)
- mount.nfs: access denied by server while mounting 172.17.0.2:/mnt/nfstest/ HOT 1
- example of docker-compose.yml HOT 3
- directory does not support NFS HOT 5
- the showmount get stucked and outputs nothing
- Creating own Image from Dockerfile wont work HOT 3
- Error while mounting nfs in a pod
- Reduce RAM/Memory resources HOT 2
- No privs to container, how to mount before starting? HOT 3
- Vulnerabilities in Docker image erichough/nfs-server:2.2.1
- Kubernetes example? HOT 1
- rpcbind.target need to be disabled and stopped before start nfs-server container
- Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/exec: no such file or directory: unknown HOT 2
- Accessing the share from an external device
- 2: Unsupported version HOT 1
- aarch64 Support
- Is there anyway update /etc/exports outside without restart nfs container HOT 1
- ERROR: missing CAP_SYS_ADMIN via docker-compose HOT 7
- kernel module nfs is missing HOT 1
- Documentation update needed for describing binding export folders through environment variables
- PUTROOTFH Status: NFS4ERR_NOENT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nfs-server.