Missing /etc/hosts on containers with --network container:name #4626
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
When starting a container with
--network container:name
, dependent containers don't get a/etc/hosts
fileSteps to reproduce the issue:
podman pod create --name=test --share net
podman run -d --name=netcontainer --pod=test busybox sleep 100000
podman run --rm --pod=test --network container:netcontainer busybox cat /etc/hosts
Describe the results you received:
Describe the results you expected:
/etc/hosts should be there
Additional information you deem important (e.g. issue happens only occasionally):
This happens both with SELinux in "permissive" and "enforcing" mode, no AVCs in audit.log
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
Laptop with Fedora 31 installed a few days ago, the system was fully updated/rebooted before running the commands above
The text was updated successfully, but these errors were encountered: