-
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
hostname is not added to /etc/hosts #1745
Comments
It does not look like Docker does this, but it is probably not a bad idea. |
Docker on Fedora does this:
|
@TomSweeneyRedHat the things I am packing in images need to be installed and the current hostname is imbued into profiles and configurations. So, I have to do this: Therefore, the possibility to specify hostname during build would be appreciated! |
@TomSweeneyRedHat I think this is a Podman thing - we set hostname by default to container ID when we make containers in Podman (with option of user override). |
(Though Buildah may want to do it as well, I don't think you necessarily want to include custom /etc/hosts changes in images - we don't on the Podman side. |
Is this a BUG REPORT or FEATURE REQUEST?:
kind bug
Description
podman does not add container's hostname to /etc/hosts (docker does).
Steps to reproduce the issue:
Describe the results you received:
I can see the content of host's /etc/hosts and there is no entry with the host
foobar
.Describe the results you expected:
Output of
podman version
:Output of
podman info
:The text was updated successfully, but these errors were encountered: