mirror of
https://github.com/containers/podman.git
synced 2025-12-04 20:28:40 +08:00
* Add BaseHostsFile to container configuration * Do not copy /etc/hosts file from host when creating a container using Docker API Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
etc hosts
This test mounts a /etc/hosts file in the host containing an entry foobar, then create a container with an alias of the same hostname.
Validation
- No /etc/hosts entries are copied from the host. There should be only one entry of the hostname, which is IP address of the alias.
- The hostname is resolved to IP address of the alias.