hostname not added to /etc/hosts in rootless mode #3405
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
I think this is a bug, if it is not intended to work like this.
Description
Steps to reproduce the issue:
Describe the results you received:
An exact copy of the host's /etc/hosts file is displayed, it does not include the container's hostname entry
Describe the results you expected:
It should include a line like this:
10.88.0.2 hello
Additional information you deem important (e.g. issue happens only occasionally):
If you run the command as root the host entry is correctly added, in root-less mode it is missing.
Output of
podman version
:I'm using Fedora 29. I tried also with the latest dev snapshot on another machine with the same result.
Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
I can provide this as needed, but I think this should be universally reproducible (at least somebody I asked on IRC yesterday had the exact same result).
Similar issue: #1745
The same problem exists for podman build. But there is an additional/separate issue here: /etc/hostname is not set correctly during podman build, even in root mode. In docker this all works as expected.
To test:
Compare
The text was updated successfully, but these errors were encountered: