Add support for reaching containers using host networking on Podman
This commit is contained in:
parent
cdda9a18ab
commit
f85f3b68aa
2 changed files with 5 additions and 1 deletions
|
@ -338,6 +338,9 @@ func (p Provider) getIPAddress(ctx context.Context, container dockerData) string
|
|||
if host, err := net.LookupHost("host.docker.internal"); err == nil {
|
||||
return host[0]
|
||||
}
|
||||
if host, err := net.LookupHost("host.containers.internal"); err == nil {
|
||||
return host[0]
|
||||
}
|
||||
return "127.0.0.1"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue