podman run fails to update /etc/hosts when --uidmap is provided

Solution Verified - Updated -

Issue

  • We cannot see an entry inside /etc/hosts for the container IP whenever --uidmap is used against a podman run command.

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content