--no-hosts option prevents adding custom entries to containers /etc/hosts #14253
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
Description
In #11835 it was mentioned that the
--no-hosts
option will prevent entries from the hosts/etc/hosts
file from being included. However when using the option it is now also impossible to use the--add-host
argument.In my use case I need to both have a clean starting point for the container
/etc/hosts
file and also be able to add custom entries in the container ideally without having to modify the base image.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
running in libvirt
The text was updated successfully, but these errors were encountered: