Host Network with Docker for Windows

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

I’m trying to set up a development environment on my Windows machine using Docker for Windows with WSL2. What I want to have is Consul, Prometheus, and Grafana running as Docker containers, while my actual development and running of my services are from the Windows host. I need Prometheus to be able to communicate with Consul, Grafana to communicate with Prometheus, and I need Prometheus and Consul to be able to communicate with the Windows Host. I also need to be able to reach all three docker containers from Windows Host. Using Host network mode seemed like a straight forward and easy path to accomplish this since this is for development purposes only, and not production. However, when I start a container with host networking I don’t seem to be able to reach it at all, regardless if I use localhost, 127.0.0.1, the IP of my Windows host, or the IP listed for WSL. I am beginning to suspect that this is because the way Windows handles WSL2, although it isn’t using Hyper-V anymore it is still doing some level of virtualization. My question boils down to is it possible to use Host network mode for Docker for Windows? Maybe there are other ways to configure networking? submitted by /u/ForsakenSegfault [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

Good resources and examples of how to compose Dockerfiles??

Mon Jun 29 , 2020
Spread the love          Hi – I’m pretty familiar with the basics of docker and running various images however I’m at the point where I need to expand my skillset and actually compose Dockerfiles which use an alpine linux as a base package and add users/packages and other items. I’ve written a […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM