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,270 points
46 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,270 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 29, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
119 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
• 9,530 points
49 views
0 votes
1 answer
0 votes
1 answer
0 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
• 56,520 points
149 views
0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
56 views