podman-build/test/compose/etc_hosts
2025-10-11 12:30:35 +09:00
..
docker-compose.yml First commit for v5.6.2 2025-10-11 12:30:35 +09:00
hosts First commit for v5.6.2 2025-10-11 12:30:35 +09:00
README.md First commit for v5.6.2 2025-10-11 12:30:35 +09:00
setup.sh First commit for v5.6.2 2025-10-11 12:30:35 +09:00
teardown.sh First commit for v5.6.2 2025-10-11 12:30:35 +09:00
tests.sh First commit for v5.6.2 2025-10-11 12:30:35 +09:00

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.