-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add nsswitch.conf to Minecraft docker image to fix localhost resolution #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is there a particular way you are running the docker container or the daemon that causes that issue for you? I have never encountered |
I think it may depend on the actual network configuration of the network the host machine uses, as unless I am missing something, this issue results in the go DNS resolving skipping resolution using /etc/hosts. It has had issues on 4 out of 5 CentOS 7 hosts I have tried it on, with identical docker configurations, and have been working around in the meantime by adding |
I'll work on adding this change sometime today, but I'll need you to verify the fix since I am not able to recreate it and have heard no other reports of this. I was quite confident the addition of |
This change has been pushed to Docker Hub. @notgne2 , can you see if this resolved the issue for you? |
I think that issue is just referring to Alpine being one of the few images lacking |
Tested on one of the problematic servers without the workaround env supplied, no errors in logs and |
There is the related issue here golang/go#22846
rcon-cli
uses Go, which will resolvelocalhost
incorrectly on certain machines, this could be fixed by creating a basicnsswitch.conf
,echo 'hosts: files dns' > /etc/nsswitch.conf
should doThe text was updated successfully, but these errors were encountered: