Docker machine
Jul 20, 2017 · 1 min read

Install
brew install caskroom/cask/docker-toolboxCreate machine
docker-machine create --driver "virtualbox" defaultConnect to machine from current shell
eval "$(docker-machine env default)"Connect to machine when starting shell
Add following to ~/.zshrc or ~/.bashrc file
This command will start docker machine(if it not started) when starting a shell session. Then it will connect to the started docker machine.
Set insecure registry
Add insecure registry details to docker machine configuration file locates at ~/.docker/machine/machines/default/config.json
"InsecureRegistry": [
"10.4.1.4",
"dockerregistry.pagero.local"
],After adding this content to config file you have to provision the docker machine
Provision docker machine
docker-machine provision default
