Comments (7)
@LennardWesterveld did you remove /Users from the Docker for Mac preferences? From the Readme:
You can now specify what mounts you want in the d4m-nfs-mounts.txt file. Note that if you do this, you need to make sure that it does not conflict with D4M settings, in other words if you want to have /Users be served by NFS instead of osxfs you will need to remove it from the D4M Preferences -> File Sharing. The /tmp share must stay since that is how d4m-nfs exchanges information with the D4M Moby VM.
from d4m-nfs.
@if-kenn Yes i did: https://www.dropbox.com/s/yy5w6vglzwst983/Schermafdruk%202016-12-01%2010.03.14.png?dl=0
from d4m-nfs.
@LennardWesterveld one other thing that I thought of is that you are trying to export the mounts with UID 1000 and GID 1000 that probably don't exist, unless you created a user and group on your Mac with these IDs.
The idea behind UID/GID mapping is that the NFS host export maps permissions the to corresponding UID/GID on the system, not change the owner on the client.
As a sanity check to see if things work, change:
/Volumes:/Volumes:1000:1000
/private:/private:1000:1000
/Users:/Users:1000:1000
to:
/Volumes:/Volumes:0:0
/private:/private:0:0
/Users:/Users:0:0
from d4m-nfs.
For better explanation see:
https://linux.die.net/man/5/exports
from d4m-nfs.
Hi @if-kenn,
Alright i understand, so thats why the owner ship doen't change in the docker container.
So when i change it to 0:0 the mount permissions will be root so there will be no issue when writing?
Anyway i will try it today if that works, probably thats solves my issue.
from d4m-nfs.
So to accomplish what you are wanting, you would use the 0:0 ids and on your Mac change desired ownership of files to 1000:1000, e.g:
sudo chmod 1000:1000 /Users/lennard/foobar
Even though the user and group does not exist most Unix systems still allow you to assign a numeric ID instead of a name. Note that you might have to add you user to the 1000 group or some such thing. Every circumstance requires a different tactic, even when not using NFS.
Good luck!
from d4m-nfs.
@LennardWesterveld I am going to consider this closed, please reopen or make a new issue if you need to.
from d4m-nfs.
Related Issues (20)
- Can't mount volume directory that does not exist on host HOT 10
- Session data file is not created by your uid HOT 4
- Unable to mount home dir to /mnt HOT 12
- Running d4m-nfs.sh gives something wrong with /etc/exports file error. HOT 9
- mount.nfs: requested NFS version or transport protocol is not supported HOT 14
- Error with mounting volumes with docker-compose HOT 6
- Cannot docker-compose up on laradock: Mounts denied HOT 13
- Not allowed to stop the nfsd service on Mac OS 10.12.4 HOT 6
- Cannot start service applications: Mounts denied HOT 13
- Vagrant entries in /etc/exports causes ./d4m-nfs.sh to fail HOT 5
- Mount Denied HOT 17
- Data from MYSQL is removed from /tmp HOT 5
- Files and folders are created in the host machine but is owned by root user HOT 3
- ENH: add `mkrakauer-rio/disable-full-sync-on-flush.sh` to start up process. HOT 5
- d4m doing weird things in my console HOT 4
- cp: /tmp/d4m-apk-cache/*: No such file or directory HOT 7
- Issue with webpack HOT 2
- Migrate from d4m-nfs to native Docker NFS Volumes discussion HOT 65
- Blank space on /etc/d4m-nfs-mounts.txt break script d4m-nfs.sh HOT 2
- Script will fail if my home directory is not standard HOT 7
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 d4m-nfs.