Skip to content

Instantly share code, notes, and snippets.

@michaloo
Created January 2, 2017 10:52
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 michaloo/5774d0c5acae5919ed96c8cbbe79a937 to your computer and use it in GitHub Desktop.
Save michaloo/5774d0c5acae5919ed96c8cbbe79a937 to your computer and use it in GitHub Desktop.
Light and fast docker installation on MacOS
# install vbox
brew install docker-machine docker docker-machine-nfs
docker-machine create --driver=virtualbox --virtualbox-disk-size "5120" --virtualbox-no-share default
docker-machine-nfs default --shared-folder=/Users/ --mount-opts="nolock,vers=3,udp,noatime,actimeo=1"
@futerzak
Copy link

futerzak commented Jan 2, 2017

--shared-folder to jest ten folder który ma zostać udostępniony dla odpalania maszyn?
jeśli ja mam folder /github/ i w nim mam wszystkie repozytoria to powinienem go wpisać?

@michaloo
Copy link
Author

michaloo commented Jan 2, 2017

If your github directory is within you home directory I will suggest leaving this option as is right now.
When you share /Users this will create /Users directory within the virtualbox machine, so when you are in e.g.:
/Users/name/github/project it will match the same path within virtualmachine /Users/name/github/project, then docker will be able to mount these directories transparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment