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

462 B

####> This option file is used in: ####> podman build, create, farm build, 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 manages /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 is preserved unmodified.