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
Use --network=host in the docker run command. This tells Docker to make the container use the host's network stack. You can learn more here.
--network=host
docker run