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,280 points
26 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,280 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,280 points
79 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,050 points
25 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,120 points
57 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,280 points
39 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.