What is the alternative for using host network in docker run command on a Windows host?

261 Views Asked by At

As per the docs,

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.

we cannot specify network="host" while running the docker run command on a Windows host. So, what is the alternative for that so that the container would be able to utilize the Windows host networking stack?

0

There are 0 best solutions below