Wednesday 25 March 2020

4 possible reasons why your Docker containers can’t talk to each other

When you put a NodeJS application in a container, something that often breaks is the connection to the database and other services. If you're struggling to get two containers to talk to each other, you can try these 4 troubleshooting steps to quickly fix your issue. In short:Containers should be in the same networkConnecting to a container by its name isn't possible in the default network, create on of your own insteadMake sure you are using the correct IP addressThe network should have ICC enabled (it does by default)In the article, I elaborate a little bit more on each bullet point and show you a solution. This isn't a comprehensive list, but hopefully it helps some folks who have already spent several hours debugging their issues.

Submitted March 25, 2020 at 04:40PM by _maximization

No comments:

Post a Comment