Code Monkey home page Code Monkey logo

docker-nfs4's People

Contributors

joebiellik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-nfs4's Issues

backup nfs4

can you help me with a back up i lost a lot of filles tank´s .

Question: mountd not get started?

Hi, your repository saved my days. Thanks.

Background and problem

I have modified your Dockerfile a little bit like this

FROM alpine:latest

RUN apk add --no-cache nfs-utils

ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.1/s6-overlay-amd64.tar.gz /tmp/
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /

COPY s6/config.init /etc/cont-init.d/00-config
COPY s6/rpcbind.run /etc/services.d/rpcbind/run
COPY s6/mountd.run /etc/services.d/mountd/run

EXPOSE 111/udp 2049/tcp 2049/udp

# Added
RUN echo '/mnt *(rw,fsid=0,root_squash,no_subtree_check,insecure)' >> /etc/exports

CMD ["/init"]

build

docker build . -t otiai10/nfs-server

run

docker run \
  -it --rm --privileged \
  -p 111:111/udp -p 2049:2049/tcp -p 2049:2049/udp \
  -v /mnt:/mnt \
  otiai10/nfs-server

then I got

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-config: executing...
[cont-init.d] 00-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
rpc.mountd: Version 2.1.1 starting

Seems working well half the way, but it stucks on rpc.mountd: Version 2.1.1 starting.

From client side,

[root@ip-172-31-30-27 ~]# mount -t nfs -o nfsvers=4,proto=tcp 172.31.29.92:/mnt foobar
mount.nfs: mounting 172.31.29.92:/mnt failed, reason given by server: No such file or directory

[root@ip-172-31-30-27 ~]# rpcinfo -p 172.31.29.92
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100003    4   tcp   2049  nfs
    100003    4   udp   2049  nfs

Question

Is this rpc.mountd get started? If not, do you have any idea I should do?

Thank you.

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.