Providing both --uts=host
and --network=host
results in unexpected /etc/hostname
#20448
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.
Issue Description
Normally, enabling host networking makes /etc/hostname match the real hostname of the machine where the container is running. However, adding
--uts=host
on top of that, resets /etc/hostname to the generated one. Illustrated:Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
/etc/hostname contains an autogenerated host name despite both
--uts=host
and--network=host
.Describe the results you expected
/etc/hostname matches the output of
uname -n
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Tested on my Fedora laptop based on feedback from CoreOS 8 users.
Additional information
No response
The text was updated successfully, but these errors were encountered: