Skip to content

Commit

Permalink
Make host.docker.internal work with docker-installed-inside, fixes dd…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Oct 11, 2022
1 parent a93b0e7 commit 9fcb2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dockerutil/dockerutils.go
Expand Up @@ -1028,7 +1028,7 @@ func GetHostDockerInternalIP() (string, error) {
// Docker on linux doesn't define host.docker.internal
// so we need to go get the bridge IP address
// Docker Desktop) defines host.docker.internal itself.
case runtime.GOOS == "linux" && !IsDockerDesktop():
case runtime.GOOS == "linux" && !nodeps.IsWSL2():
// look up info from the bridge network
client := GetDockerClient()
n, err := client.NetworkInfo("bridge")
Expand Down

0 comments on commit 9fcb2ce

Please sign in to comment.