I often totally forget about how to setup docker in Mac because I erase docker environment since I don't use it for auite a while.
Anyway keep it on my note about the instructions.
before this instruction, make sure install virtualbox brew install docker-machine docker
brew cask install virtualbox
.
(if stuck to install virtualbox with osx high sierra, this mighit help you)
docker-machine create default
docker-machine start default
eval $(docker-machine env)
docker version
docker run ...
docker-machine stop default
curl `docker-machine ip`:8080
OR VBoxManage modifyvm "default" --natpf1 "tcp-port53306,tcp,,53306,,53306”;