Connecting to Docker host MySQL from Docker Container: Linux Ubuntu

Sam Ngu
3 min readSep 26, 2019

Let’s face it. Connecting to the host machine from Docker containers in Linux is frustrating. After hours of googling + trial and errors + crying, I came up with this solution which I’m happy to share it with you.

Photo by Oliver Hihn on Unsplash

Why bother?

Both windows and mac version of Docker offers a convenient method of resolving the…

--

--