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
asked 2 months ago355 views
1 Answer
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

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions