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
demandé il y a 3 mois366 vues
1 réponse
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

répondu il y a 3 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions