podman/docs/source/markdown/options/no-hosts.md

459 B

####> This option file is used in: ####> podman build, create, kube play, pod create, run ####> If file is edited, make sure the changes ####> are applicable to all of those.

--no-hosts

Do not create /etc/hosts for the <<container|pod>>. By default, Podman will manage /etc/hosts, adding the container's own IP address and any hosts from --add-host. --no-hosts disables this, and the image's /etc/hosts will be preserved unmodified.