boot2docker auto export ip
If you are using docker on your OSX machine you are using boot2docker. To never have to worry about exporting the DOCKER_HOST
variable to properly run your docker commands add this to your shells rc file.
export DOCKER_HOST=`boot2docker socket 2>/dev/null`
This will accurately set the ENV variable to the correct
tcp:// address.
Written by Talon
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Development
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#