Public Repository

Last pushed: 6 months ago
Short Description
Help with name resolution of containers on a local windows host to overcome the WinNAT shortcoming.
Full Description


Docker image that will monitor local docker-engine for containers and update a volume mapped hosts file, allowing for name resolution to your local docker containers by name.

docker run -d --restart=always `
    --name host-registrator `
    -e HOSTSFILE=c:/etc/hosts `
    -e DOCKER_HOST= `
    -v C:/Windows/System32/drivers/etc:c:/etc `

Make sure that docker-engine is looking for tcp connections:

C:\ProgramData\docker\config> cat .\daemon.json
        "hosts": ["tcp://", "npipe://"],
        "fixed-cidr": ""

NOTE: make sure that the docker-engine port is open

# Open firewall port 2375
netsh advfirewall firewall add rule name="docker engine" dir=in action=allow protocol=TCP localport=2375
Docker Pull Command