In Docker for windows how does communication between linux and windows containers work

0 votes
I’m using RabbitMq for .net core based and few full fx microservices communication. RabbitMq and .net core microservices are inside of a linux based docker container and they are connected to the same network in a docker-compose file.

.Net core microservices can easily connect to RabbitMq by using container name as a hostname.

Now, when it comes to windows-based containers the network is not shared between windows and linux docker engines, so I can't connect windows based microservices to the RabbitMq service by using container name.

Can someone help me out with this issue?
Nov 9, 2018 in Docker by Sophie may
• 10,620 points
1,433 views

1 answer to this question.

0 votes

You can create a host file in such a way that the IP of the RabbitMQ Docker container is set to a name. An example is, with Docker Toolbox you can put the this in host:

    192.168.99.100 docker

Now every developer can set the IP and the docker-compose could use the name.

Level up your skills with our Microservices Course.

answered Nov 9, 2018 by Sophie may
• 10,620 points

Related Questions In Docker

0 votes
2 answers

How does networking on Docker for Windows work?

Each container has a virtual network adapter (vNIC) which is connected ...READ MORE

answered Aug 29, 2020 in Docker by Pistle
• 1,000 points
2,066 views
0 votes
1 answer

How does save and export command work in docker and how are they different from one another?

Export : Export is used to persist a ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,230 points

edited Jul 2, 2019 by Sirajul 6,878 views
0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 28, 2018 in Docker by Tyrion anex
• 8,700 points
3,364 views
0 votes
1 answer

How to save a Dynamic port in Docker for Windows?

The mapped ports can be accessed via ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,700 points
820 views
+2 votes
1 answer
0 votes
2 answers
0 votes
2 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP