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 20, 2022
1 parent 8b714e1 commit 0ec548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dockerutil/dockerutils.go
Expand Up @@ -1032,7 +1032,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 0ec548b

Please sign in to comment.