-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'pre-defined/reserved' internal hostnames #19361
Comments
@Luap99 PTAL |
I don't know the history of why we choose this name over the docker one but I will try to dig it up. |
We wanted to have a name without the letters "docker" but it turns out some customers built this functionality into the container images. |
I mean adding the entry is simple and because it helps converting existing workloads depending on it I think we should just add them. |
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. Also remove the comment that podman depends on crc.testing, it does not for a long time now. But because I do not know if crc needs it I left it in there. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. Also remove the comment that podman depends on crc.testing, it does not for a long time now. But because I do not know if crc needs it I left it in there. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
will be added with containers/gvisor-tap-vsock#251 and containers/common#1592 |
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. Also remove the comment that podman depends on crc.testing, it does not for a long time now. But because I do not know if crc needs it I left it in there. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. Also remove crc.testing, podman does not depend on it since at least v4.0 and it seems like there are no other users. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Some tools hard code the `host.docker.internal` dns name so it is not possible to run them with podman right now. Adding the entry is simple so we should support it for better compatibility. Also remove crc.testing, podman does not depend on it since at least v4.0 and it seems like there are no other users. see containers/podman#19361 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@Luap99 I assume this is done, is it? |
Ah yes, code changes are merged. |
Feature request description
Some containers are using some predefined docker hosts like
host.docker.internal
orgateway.docker.internal
Then, these containers are failing during their execution as these hosts don't exists
It seems that there is
host.containers.internal
andgateway.containers.internal
https://github.com/containers/gvisor-tap-vsock/blob/049be485f9a50ecbc8fb1aed9a040ceeead4e864/cmd/gvproxy/main.go#L187-L194but for compatibility with Docker I think it would be nice if
host.docker.internal
andgateway.docker.internal
were aliased tohost.containers.internal.
andgateway.containers.internal
Suggest potential solution
Add alias from
host.docker.internal
tohost.containers.internal.
andgateway.docker.internal
togateway.containers.internal
Have you considered any alternatives?
N/A
Additional context
I found that while testing digma-ai app with Podman
https://github.com/search?q=org%3Adigma-ai+host.docker.internal&type=code
related docker documentation: https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
The text was updated successfully, but these errors were encountered: