educative.io

Educative

Localhost resolves to itself

" An application running in another container could not communicate with MySQL because localhost resolves to itself."
what does this mean?

Hello @Bassant_Abdelgawad,

Thank you for reaching out to us regarding your confusion about the topic. Can you please provide the link to the course and lesson where you are facing this issue to help you better with it?

Thank you :blush:

Hello Abdul_Mateen

The course is Docker for Web Developers. You’ll find the line in this lesson; Docker Volumes and Networks under Networks. I don’t understand this line: " An application running in another container could not communicate with MySQL because localhost resolves to itself."