Score:0

Connect to MySql running in a docker in Azure

us flag

I have a docker running in Azure running MySql I have started the container, and it is running

CONTAINER ID   IMAGE           COMMAND       CREATED         STATUS         PORTS                               NAMES
0d69d56544c8   adsdb:backup   "/bin/bash"   9 minutes ago   Up 8 minutes   0.0.0.0:3306->3306/tcp, 33060/tcp   adsdb

however I cannot connect to it via mysql workbench from my local machine. I have TCP port 3306 open in my networking settings under inbound port rules. I did have MySQL running on the ubuntu server and was able to connect to it fine. But since I have now moved to running MYSql inside the docker container, I can no longer connect to it.

I'm guessing I need to port forward ads.centralus.cloudapp.azure.com:3306 to the dockers IP which is 172.17.0.2:3306 How can I do this?

I also plan to have a web server in another docker on the same server, and I assume it will have similar problems.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.