This Gist describes the steps to build a MySQL Docker Image, where the standard mysql port (3306) is exposed to the host.
If you're behind a proxy, you'll need to ensure the http_proxy
and https_proxy
environment variables are set, so the proxy
configuration can be propagated to the created Docker Container. I also found I had to set these settings in my Mac's Docker installation preferences GUI, for some reason it would not pick up my system proxy settings.
For example: