GithubHelp home page GithubHelp logo

Comments (7)

kusmierz avatar kusmierz commented on July 16, 2024 2

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.

tonivdv avatar tonivdv commented on July 16, 2024

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.

tonivdv avatar tonivdv commented on July 16, 2024

Were you able to test this?

from docker-machine-nfs.

evbo avatar evbo commented on July 16, 2024

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.

tuscland avatar tuscland commented on July 16, 2024

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.

tonivdv avatar tonivdv commented on July 16, 2024

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.

tuscland avatar tuscland commented on July 16, 2024

Thanks, I'll try data containers!

from docker-machine-nfs.

Related Issues (20)

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.