Skip to main content

One doc tagged with "dns"

View all tags

Docker Compose Extra Hosts

How to use extra_hosts in Docker Compose to add entries to /etc/hosts inside containers. Essential for DNS mocking and accessing host services.