I want to make it so that the Docker container I spin up use the same /etc/hosts settings as on the host machine I run from. Is there a way to do this?
/etc/hosts
I
If you are using docker-compose.yml, the corresponding property is:
docker-compose.yml
services: xxx: network_mode: "host"
Source