Docker Community Forums

Share and learn in the Docker community.

Using the windows Host file

(Barry Dobson) #1

Expected behavior

When I start a container I expect it to be able to see services that have host entries in the windows environment

Actual behavior

I have to pass via --add-host on docker run for the container to be able to see these mappings.


When having a lot of host entries it is annoying to have to type this out. I’m wondering if there is a better way to do this?