Container to Container communication - Docker for Windows

Viewed 1652

I am a newbie to docker . I am using docker for windows on Windows 10 . I have created a docker container application (spring boot) which need to communicate with a rabbitmq - which is again inside a container both of them are using the same docker network(default bridge network) but when I try to connect to rabbitmq(port 5672) the connection get refused.I am using the container IP (172.17.0.2 for rabbitmq) . If I run the connecting application outside docker container and connect to a mapped rabbitmq port for my local machine it works. Deoesn't the containers connected to same docker network cannot communicate with each other using the docker ports?

1 Answers
Related