Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
Last active January 4, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianlintner-wf/8b5aecb369a96a177f43 to your computer and use it in GitHub Desktop.
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
"/Users" 192.168.99.100 -alldirs -mapall=502:20
@ianlintner-wf
Copy link
Author

"/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

@ianlintner-wf
Copy link
Author

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