I created an Ubuntu 15.10 VM on Microsoft Azure. On the Server i created a docker container with MySQL running (IP: 172.17.0.2)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4255233555db mysql "/entrypoint.sh mysql" 16 hours ago Up 16 hours 0.0.0.0:3306->3306/tcp compose_mysql_1
I can connect over ssh to the VM and then access the MySQL-Server running in the docker container.
I now wanna have access to the MySQL-Server from the outside so that my WebApp on Microsoft Azure (same Ressource Group) can connect to the database.
I already forwarded the port 3306 of the VM to 172.17.0.2:3306.
With MySQL-Workbench from my local PC i can't connect to the MySQL-Server. In fact i am not sure which credentials i need to provide to connect. I tried it with the public ip of the VM and the root password of the MySQL-Server. But shouldn't i somewhere also provide the password and user for the VM itself?






