Docker Networking Issue to connect Other container

0

Recently I have been worked on two-tier application deployment so I created two different docker containers and first is MySQL container and the rest is just a notepad project container so, I saw that both docker containers have interconnected with each others and I created a docker network to interconnected each others.

But both containers have not connected each others so, anyone can suggested me which docker network are suitable for this condition, I have created (Bridge network) that is correct for this scenario based

profile picture
preguntada hace 3 meses366 visualizaciones
1 Respuesta
0

Hello Amit,

Your network choice is correct for this scenario. You might want to double-check if you specified the same network name when creating both containers. Typos or inconsistencies can lead to connectivity issues. Also, Ensure you've correctly mapped the port used by your Node.js project to access the MySQL database within the network. Lastly you can use docker-compose for better management of multiple containers

Thanks

respondido hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas