Created
August 21, 2021 22:54
-
-
Save camalot/fa640a573c8da2c2197ff788eb81f321 to your computer and use it in GitHub Desktop.
Allow Docker for Windows to Listen on Host Network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LISTEN_ADDRESS="<Ethernet adapter vEthernet (WSL) IPv4 Address>" | |
netsh interface portproxy add v4tov4 listenaddress=$LISTEN_ADDRESS listenport=2375 connectaddress=127.0.0.1 connectport=2375 | |
netsh advfirewall firewall add rule name="Docker" dir=in action=allow protocol=TCP localport=2375 enable=yes profile=domain,private,public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment