Konubinix' opinionated web of thoughts

Custom Hosts Are Not Propagated in the Docker Container

Fleeting

custom hosts are not propagated in the docker container

Custom hosts, defined in /etc/hosts on the host machine, aren’t inherited by containers. To pass additional hosts into container, refer to add entries to container hosts file in the docker run reference documentation.

https://docs.docker.com/config/containers/container-networking/

Notes pointant ici