Docker for Windows Containers IP accessible in local network

0 votes
I’ve installed docker for windows, not the docker toolbox.

I’m trying to access containers from my local network (192.168.0.0/24) with their own IP (for example 192.168.0.53 and 192.168.0.54).

 I’ve done a couple of things, I tried changing networks Hyper-V settings to external, but my containers are only accessible in my office.

How can I do this?
Dec 4, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,367 views

1 answer to this question.

0 votes

Add more IP to the windows DockerNAT interface. Next, bind your container ports to one IP from DockerNAT int.

You will require a different IP range. For example, you can use 192.168.1.0/24 by assigning IP 192.168.1.1.

Then bind ports like this,

ports:
 - 192.168.1.1:80:80

Let me know if this helped

answered Dec 4, 2018 by Tyrion anex
• 8,700 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,217 views
0 votes
1 answer

Error: Unable to access elasticsearch in docker for windows

This is simple, just follow the below ...READ MORE

answered Sep 3, 2018 in DevOps & Agile by Sophie may
• 10,620 points
1,689 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,715 views
0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,093 views
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