Coder Social home page Coder Social logo

Comments (9)

macpijan avatar macpijan commented on May 28, 2024 1

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.

ehough avatar ehough commented on May 28, 2024 1

@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.

choman avatar choman commented on May 28, 2024

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.

choman avatar choman commented on May 28, 2024

secuirty-opt was missing. Thanks. off to the next issue

from docker-nfs-server.

choman avatar choman commented on May 28, 2024

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.

ehough avatar ehough commented on May 28, 2024

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.

choman avatar choman commented on May 28, 2024

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.

ehough avatar ehough commented on May 28, 2024

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.

linuxemb avatar linuxemb commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.