Docker machine

λ.eranga
λ.eranga
Jul 20, 2017 · 1 min read

Install

brew install caskroom/cask/docker-toolbox

Create machine

docker-machine create --driver "virtualbox" default

Connect 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

Rahasak

)
λ.eranga

Written by

λ.eranga

Scala, Golang with Vim and Hockey: What else does a man need to be happy :)

Rahasak

Rahasak

Have less, be more

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade