orange-thailand-83295
07/19/2022, 7:55 AMhost.docker.internal
I tried on a new container, it does not work too.
Step i've done :
Firewall rule
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
New container
docker run -d -p 80:80 docker/getting-started
Ping :
docker exec -it containerName sh
/ # ping -c 2 host.docker.internal
PING host.docker.internal (172.17.32.1): 56 data bytes
--- host.docker.internal ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
Do you have an idea ? Thank'scalm-sugar-3169
07/19/2022, 5:32 PMhost.rancher-desktop.internal host.docker.internal
in the /etc/hosts “?host.rancher-desktop.internal host.docker.internal
to wsl interface vEthernet (WSL)
IP address. If this does not meet your requirement or you may need to point those entries to other IP address other than WSL interface itself, you can manually do this.orange-thailand-83295
07/20/2022, 9:04 AMcalm-sugar-3169
07/21/2022, 6:18 PMorange-thailand-83295
07/22/2022, 7:02 AMGet-NetFirewallRule -DisplayName WSL
PS C:\WINDOWS\system32> Get-NetFirewallRule -DisplayName WSL
Name : {4ee8a2d5-388a-41cd-a0b6-a97a4ffd56b2}
DisplayName : WSL
Description :
DisplayGroup :
Group :
Enabled : True
Profile : Any
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : La règle a été analysée à partir de la banque. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local
I can ping WSL from container
I can ping Windows (172.17.32.1) from WSL
But I can't ping Windows from containeracoustic-bird-20495
10/13/2022, 10:13 AM