Boot2Docker shellInit - set the DOCKER_HOST in your macosx Terminal

Share on:

Personal note to me rather than something special, if you use Boot2Docker on your MacOSX and you want an easy way to your docker command line client to connect to the underlying boot2docker vm, add on your /.bash_profile_ file the following line. Credit's to this stackoverflow post.

1bash $(boot2docker shellinit 2>/dev/null)