Coder Social home page Coder Social logo

Comments (4)

ehough avatar ehough commented on May 28, 2024 4

Thanks for your question. I'm not personally familiar with RancherOS, but my understanding is that it uses a vanilla Linux kernel and therefore should work just fine with this image. We'll just need to get the proper kernel modules loaded.

I think the solution might be to load the kernel-extras package as described in this article. If I were you I would try the following commands:

$ sudo ros service enable kernel-extras
$ sudo ros service up kernel-extras
$ sudo modprobe nfs
$ sudo modprobe nfsd
$ docker run                                                           \
  -e NFS_EXPORT_0='/nfs/dgraph 192.168.25.0/24(rw,no_subtree_check)'   \
  -v /host/Dgraph:/nfs/dgraph                                          \
  --cap-add SYS_ADMIN                                                  \
  -p 2049:2049                                                         \
  erichough/nfs-server:latest

In theory this would load the nfs and nfsd kernel modules and you'll be all set. Give that a try?

from docker-nfs-server.

ehough avatar ehough commented on May 28, 2024

Were you able to get things working? Please let us know.

Tidying up and closing this issue but feel free to re-open.

from docker-nfs-server.

MichelDiz avatar MichelDiz commented on May 28, 2024

Hey, sorry for the delay. I had some setbacks.

I started migrating to Rancher 2.0, they are using kubernetes now. I'm going to test your solution soon, but right now I'm using a solution from kubernetes-incubator. Called "nfs-provisioner", it is temporarily saving me. But I have seen that it will be discontinued.

Cheers!

from docker-nfs-server.

ivanxx avatar ivanxx commented on May 28, 2024

Hi there, I can confirm this works on RancherOS 2.0. You only need to modprobe nfs and nfsd prior to lauch the docker image. I'm looking for a way to get those modules loaded on boot (I suppose this is done from the cloud-config.yml or ros config utility)

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.