- Install the VirtualBox, run:
brew cask install virtualbox - Install some Docker stuff, run:
brew install docker docker-machine docker-compose - If you don't have any machine yet, run:
docker-machine create - Add some envs to terminal, run:
echo "eval $(docker-machine env)" >> ~/.zshrc - Edit host file proxying local domains to
docker-machine ip, runsudo vim /etc/hostsand paste the code below:
192.168.99.100 site.localtest.me
192.168.99.100 api.localtest.me
An additional tool to leave everything fast: https://github.com/adlogix/docker-machine-nfs
- Install Docker Machine NFS, run:
brew install docker-machine-nfs - Activate NFS, run:
docker-machine-nfs default
Finnally, move Docker for Mac to trash. 🙂