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,690 points
2,479 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,690 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,690 points
2,234 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
2,510 views
0 votes
1 answer
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,664 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
2,147 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