I’m a newb.
I have Docker toolbox installed on Windows 7
$ docker --version
Docker version 1.12.2, build bb80604
I am developing a web application that uses mysql running on AWS. When I run the web application locally, it connects to the database and works fine. When I run it in a docker container it fails to connect to the database with the message “Error opening conn - Communications link failure”.
While troubleshooting I discovered that the vpc that the database is in uses the same subnet as the default bridge 172.17.0.0/16. I created my own bridge
$ docker network create --driver=bridge --subnet=220.127.116.11/16 mybridge
And ran the container using that, but that still fails to connect with the same message. It seems to take a little longer to fail using mybridge than it does using the default bridge.