You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to do the same on my windows host with docker desktop (wsl2). I can ping the gateway, but connections are refused.
I thought it might end up in the wsl2 instance, but I opened a port with nc inside wsl2 and also can't connect to that.
I can connect to the windows host by host.docker.internal, but I want to have a fixed IP address and not resolve the hostname.
Network inspect looks exactly the same like on my linux host:
Make a dummy container, try to connect to an app on host (listening on 0.0.0.0) from inside the container via IP 172.29.6.254. This works on linux host and also works on windows host when using hostname host.docker.internal instead of the IP.
Expected behavior
Like on linux host being able to connect to host apps on gateway ip (172.29.6.254 in this case)
Description
On my Linux Host docker containers I'm using following network settings to be able to connect to the host via the gateway IP
172.29.6.254
:I wanted to do the same on my windows host with docker desktop (wsl2). I can ping the gateway, but connections are refused.
I thought it might end up in the wsl2 instance, but I opened a port with nc inside wsl2 and also can't connect to that.
I can connect to the windows host by
host.docker.internal
, but I want to have a fixed IP address and not resolve the hostname.Network inspect looks exactly the same like on my linux host:
Reproduce
Make a dummy container, try to connect to an app on host (listening on 0.0.0.0) from inside the container via IP 172.29.6.254. This works on linux host and also works on windows host when using hostname host.docker.internal instead of the IP.
Expected behavior
Like on linux host being able to connect to host apps on gateway ip (172.29.6.254 in this case)
docker version
Client: Version: 27.1.1 API version: 1.46 Go version: go1.21.12 Git commit: 6312585 Built: Tue Jul 23 19:57:57 2024 OS/Arch: windows/amd64 Context: desktop-linux Server: Docker Desktop 4.33.1 (161083) Engine: Version: 27.1.1 API version: 1.46 (minimum version 1.24) Go version: go1.21.12 Git commit: cc13f95 Built: Tue Jul 23 19:57:19 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.19 GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41 runc: Version: 1.7.19 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
C2CBF451-1B6A-45F6-8843-970D1C631DFD/20240923075126
Additional Info
No response
The text was updated successfully, but these errors were encountered: