Comments (7)
edit /etc/exports
and find line something like this:
/Users 192.168.99.100 -alldirs -mapall=501:20
and change to:
/Users 192.168.99.100 -alldirs -maproot=0
or just try to run
docker-machine-nfs default -f --nfs-config="-alldirs -maproot=0"
from docker-machine-nfs.
Hey @evbo ,
Can you share how you configured nfs for your box. because in the comment you share the user did do it with -maproot=0 , which is now possible since #17
from docker-machine-nfs.
Were you able to test this?
from docker-machine-nfs.
sorry, I'm not entirely sure what it means to set maproot
. However, I did attempt to apply what I thought it meant to my local machine but it had no affect. Is there a more explicit guide for adding that setting? It's possible I just misread it as I have never edited those configurations on my mac before, nor do I know how to test them other than it works or not. Thanks for the follow up and sorry again for being belated on the reply!
from docker-machine-nfs.
Hello,
If I use the default configuration (-alldirs -mapall=501:20
), the postgres user from the official postgres Docker image can not write to the OS X file system (permission denied).
If I use the -alldirs -maproot=0
NFS configuration, then all is fine, the user from Docker can write to my local file system, but the file now belong to user 999
. In the Finder, there is a one-way sign on the directory icon, meaning that the file does not belong to me.
Is there something I miss here?
Thank you for your help!
Cam
from docker-machine-nfs.
Hey @tuscland ,
Got users that had the same issue with mysql images. I'm not using shared volumes with mysql on os X. I use data containers and then it's no issue.
Not sure if that's helpful for you, but I ignore how to make it work like you describe :(
Cheers
from docker-machine-nfs.
Thanks, I'll try data containers!
from docker-machine-nfs.
Related Issues (20)
- macOS Catalina HOT 17
- Cannot detect the NFS mount HOT 8
- How to specify uid / gid in /etc/exports
- checkMachineRunning invalid filter
- Are some still using this? HOT 1
- mounting {ip}:/Users on /Users failed: Bad file descriptor HOT 6
- Adding mount with similar machine name causes error HOT 3
- Support for Docker for Mac HOT 3
- So frustrated with docker for mac HOT 1
- Bug with 10 or more virtualbox network adapters HOT 1
- VMWare Fusion problems on macOS 10.12 HOT 1
- Not working with Parallels 12 Pro on Sierra HOT 3
- /usr/local/bin/docker-machine-nfs: 130: /usr/local/bin/docker-machine-nfs: Syntax error: "(" unexpected (expecting "}") HOT 2
- <3 HOT 1
- Stale file handle HOT 4
- Change document root
- Not syncing files properly in High Sierra HOT 21
- grep is not working HOT 4
- NFS mount fails with boot2docker v18.09.0 HOT 10
- Support docker-machine-driver-vmware and use machine ip for route
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-machine-nfs.