Helpers to work with docker on OSX.
Checkout this to ~/.bash_profile.d and add these line to your ~/.bash_profile.
if [ -d $HOME/.bash_profile.d ]; then
for f in $HOME/.bash_profile.d/*.bash; do
source $f;
done
fi
alias srcbash='source ~/.bash_profile'
Use this guide to setup dnsmasq
Credits/More info: