How to do all of this can be referenced here; the main value is the scripts I've written to abstract the functionality. Hopefully you are using a Mac...otherwise...well...I guess you can convert.
This repo assumes you are using docker machine on Mac. You will see that I'm using DOCKERHOST as an environment variable. Assuming you have some docker-machine named hashidev, you can assign this environment variable in the following way:
export DOCKERHOST=$(docker-machine ip hashidev)
To use docker on mac, you will have to evaluate the runtime. Again, assuming your docker-machine name is hashidev, you can evaluate this like so:
eval $(docker-machine env hashidev)