Comments (9)
Hi @choman
Try installing lxc
.
I have already included such hint in this PR: https://github.com/ehough/docker-nfs-server/pull/19/files
from docker-nfs-server.
@choman could you post your full docker run
command? or docker-compose.yml
etc.
mount: mounting rpc_pipefs on /var/lib/nfs/rpc_pipefs failed: Permission denied
Seems to indicate that either the correct AppArmor profile isn't loaded into the kernel, or you're missing the security-opt
portion of your docker run
command (i.e. step 4 from the AppArmor guide).
@macpijan I'm so sorry that I haven't yet merged your PR. I promise that I haven't forgotten! It will get done..
from docker-nfs-server.
That worked, sortof... Now I'm getting this during the docker run
mount: mounting rpc_pipefs on /var/lib/nfs/rpc_pipefs failed: Permission denied ----> ----> ERROR: unable to mount rpc_pipefs filesystem onto /var/lib/nfs/rpc_pipefs ---->
from docker-nfs-server.
secuirty-opt was missing. Thanks. off to the next issue
from docker-nfs-server.
My docker run command
docker container run -v /opt/nfs/home:/data -v /opt/nfs/exports:/etc/exports:ro --security-opt apparmor=erichough-nfs --cap-add SYS_ADMIN -p 2049:2049 erichough/nfs-server
from docker-nfs-server.
off to the next issue
Were you able to get everything working? You mentioned a "next issue" but your follow-up comment didn't make it clear to me if there was another problem that we needed to address. Let me know!
from docker-nfs-server.
So I think I have it working, ssh in to the system works. but if I log into the system via the desktop I'm hanging then booted. Still digging into it. I'll post back if it's docker-nfs related.
I will say I had to add other ports to the docker container to get this far
from docker-nfs-server.
I think I have it working ... Still digging into it. I'll post back if it's docker-nfs related.
OK. I'll close this issue for now, but definitely post back with any follow-up questions or trouble.
I will say I had to add other ports to the docker container to get this far
I'd be interested in hearing what you had to add, just to make sure that the docs or the image isn't missing anything. Thanks!
from docker-nfs-server.
@ehough I have the same issue,in order to add security-opt apparmor=erichough-nfs,
sudo apparmor_parser -r -W ./apparmor_file
AppArmor parser error for ./apparmor_file in ./apparmor_file at line 3: Could not open 'abstractions/lxc/container-base'
cat apparmor_file
#include <tunables/global>
profile erichough-nfs flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/lxc/container-base>
mount fstype=nfs*,
mount fstype=rpc_pipefs,
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.