jcbiellikltd / docker-nfs4 Goto Github PK
View Code? Open in Web Editor NEWSimple containerized NFS v4 server running on Alpine Linux
Home Page: https://hub.docker.com/r/joebiellik/nfs4
Simple containerized NFS v4 server running on Alpine Linux
Home Page: https://hub.docker.com/r/joebiellik/nfs4
can you help me with a back up i lost a lot of filles tank´s .
Hi, your repository saved my days. Thanks.
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
Is this rpc.mountd
get started? If not, do you have any idea I should do?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.