Last active
January 4, 2016 19:50
-
-
Save ianlintner-wf/8b5aecb369a96a177f43 to your computer and use it in GitHub Desktop.
Docker-Machine NFS /etc/exports map for permissions problems with shared directories in containers using non-root users for services e.g. apache, ngnix. www-data:www-data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/Users" 192.168.99.100 -alldirs -mapall=502:20 |
Edit your /etc/exports file and update the values for the Docker Machine Entry to be similar to the above. Replace with your docker machine ip, uid, gid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"/Users" - NFS Folder
192.168.99.100 - Docker Machine IP
-alldirs flag
-mapall=502:20 - 502 uid, 20 gid maps nfs user to that user