flaccid / docker-nfs-client Goto Github PK
View Code? Open in Web Editor NEWA Docker image for a light NFS client
License: MIT License
A Docker image for a light NFS client
License: MIT License
Hello, I am using an Ubuntu 18.04 as my NFS server in which I have created a local filesystem under /mnt/myfs
with a dummy doc.txt which I would like to share with the NFS Client. The client afaik could be the docker container, so I am using the first suggestion on README of docker run
using simply -it
. I want to check if doc.txt was successfully shared.
I am connected via ethernet cable and provided the SERVER
and SHARE
having set the enp1s1 inet4 given by ifconfig and /mnt/mynfs
respectively.
Nevertheless, I am getting an error when running:
mount: mounting to SERVER:/mnt/mynfs on /mnt/nfs-1 failed: Permission denied
Using this example:
docker run -itd --privileged=true --name nfs --net=host -v /mnt/shared_nfs:/mnt/nfs-1:shared -e SERVER=nfs_server_ip -e SHARE=shared_path d3fk/nfs-client
I get this result (it still works tho):
/usr/local/bin/entry.sh: line 5: [IP_ADDRESS: not found
/local_path on /mnt/nfs-1 type ext4 (rw,relatime,errors=remount-ro)
IP_ADDRESS:/remote_share on /mnt/nfs-1 type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=IP_ADDRESS,mountvers=3,mountproto=tcp,local_lock=none,addr=IP_ADDRESS)
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.