lancachenet / lancache-dns

DNS Docker service for a lancache.
https://hub.docker.com/r/lancachenet/lancache-dns/
MIT License
282 stars 74 forks source link

Error response from daemon: failed to create endpoint #89

Closed hades200082 closed 3 years ago

hades200082 commented 5 years ago

Issue Description: The container is created but fails to bind port 53.

The dockerd service has port 53 bound which correlates with https://docs.docker.com/v17.09/engine/userguide/networking/configure-dns/

How can we resolve this and allow the lancache-dns container to work as intended on a Windows container with LCOW?

Docker Run Command:

docker run --platform linux --restart unless-stopped --name lancache-dns --detach -p 192.168.1.200:53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=192.168.1.200 lancachenet/lancache-dns:latest

Docker Container Output:

C:\Program Files\Docker\docker.exe: Error response from daemon: failed to create endpoint lancache-dns on network nat: Windows does not support host IP addresses in NAT settings.
dark-swordsman commented 5 years ago

I was/am having a similar issue over here: https://github.com/lancachenet/lancache-dns/issues/81

It looks like, for some reason, even after disabling the dns-server-thing in Linux that was binding port 53, the port isn't being remapped to the docker container.

I haven't touched our test VM in a while, but I'm having a meeting later today to decide what to do going forward and look into options. I'll update on my issue and respond to Vibro's question.

hades200082 commented 5 years ago

This is specifically a problem in Windows when using Docker Windows containers + LCOW

In a Linux host you can specify the IP to which port 53 should bind and all is well. This doesn't work for a Windows host as the dockerd service its self has bound all IPs to port 53 its self.

astrolox commented 5 years ago

We had intended lancache to be run on Linux. You're welcome to run it on Windows, but it's not something we've ever tried to do.

This will need research. It sounds to me like you're saying that it isn't possible to run a DNS server in docker on windows. I don't know if that's true or not - but if it is you'll need an alternative to lancache-dns that does the same /similar job. Any windows based DNS server can do this job - however you will need to find a way to configure it.

stale[bot] commented 3 years ago

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord