localhost mapping detection [host.containers.internal] #25903
Unanswered
Thirumalai
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is not clear for me what you mean? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
podman currently does not add localhost mapping (i.e.
host.containers.internal
) on various conditions (e.g. when running inside a VM). This makes it less portable especially when the same Dockerfile file is being used to build locally and CI/CD pipelines and it includes a step that requires communication with a localhost on the host platform. Is there anyway to detect if the localhost can be reached athost.containers.internal
before running podman build so that we can optimise the build logics to use 127.0.0.1/host.containers.local depending on the availability of host mapping?Beta Was this translation helpful? Give feedback.
All reactions