mirror of
https://github.com/containers/podman.git
synced 2025-11-29 01:28:22 +08:00
* Add --hosts-file flag to container create, container run and pod create * Add HostsFile field to pod inspect and container inspect results * Test BaseHostsFile config in containers.conf Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
598 B
598 B
####> This option file is used in: ####> podman create, pod create, run ####> If file is edited, make sure the changes ####> are applicable to all of those.
--hosts-file=path | none | image
Base file to create the /etc/hosts file inside the container. This must either
be an absolute path to a file on the host system, or one of the following
special flags:
"" Follow the base_hosts_file configuration in containers.conf (the default)
none Do not use a base file (i.e. start with an empty file)
image Use the container image's /etc/hosts file as base file