Container created through the Compat API does not inherit /etc/hosts entries, but it can still resolve them #25004
fgiorgetti
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, the title above just explains an observation and not an actual problem.
I have noticed that after I switched to podman v5, the host entries from /etc/hosts are no longer present on the
containers created through the Compat API. Although it can still resolve those entries.
I could not find any spec change from 4.x to 5.x to handle this through the Compat API ContainerCreate operation.
Here is a small reproducer (along with a sample request message).
You need to tweak the socket endpoint before trying it:
Is it a problem (not to see those entries) or not? And does anyone know if it is possible to have the host entries listed?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions