From inside of a Docker container, how do I connect to the localhost of the machine?

Viewed 2

I have a Nginx running inside a docker container. I have a MySql running on the host system. I want to connect to the MySql from within my container. MySql is only binding to the localhost device.

Is there any way to connect to this MySql or any other program on localhost from within this docker container?

0 Answers