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
Docker 1.11.0 crash with invalid memory address or nil pointer dereference on libnetwork.(*resolver).forwardQueryStart #22081
Comments
@PierreF Are you using multiple external resolvers (either through --dns or from the host's resolv.conf file) ? |
I don't specify --dns and host resolv.conf is
|
127.x.x.x from host resolv.conf are not used within the container. So in this case by default Docker will use 8.8.8.8 and 8.8.4.4 as the external servers. From a quick analysis of the crash decode looks like this can happen in certain cases with multiple external servers. Till this is fixed as a work around can you try passing one external server either though --dns option for the daemon (all containers will inherit that config) or for the individual containers's docker run through --dns ? |
I've added "--dns 8.8.8.8" to docker daemon command line, restarted everything and no issue for last 12 hours. Seems that the workaround fix this issue. |
Me too. output : and i try to use ping google.com in container if i add this in resolve.conf It work for me. but how to add second name server? --dns not work. |
Ok i use docker-compose I add command: sh -c "echo "nameserver 8.8.8.8" >> /etc/resolv.conf && [your foreground command]" It work for me. |
@mavenugo Can you please let us know if you have a fix for this one, or if you're confident you'll have one in the 1.11.1 patch release timeframe? Thanks! |
@icecrime yes. this is already resolved in libnetwork via moby/libnetwork#1125 and we will vendor it in shortly. |
This will be fixed in 1.11.1 through #22261 (which was just merged) |
BUG REPORT INFORMATION
Output of
docker version
:Output of
docker info
:I don't know how to reproduce it, but it already occured 2 times today (I upgraded to 1.11.0 today). Both time Docker crashed with the following error (in syslog):
The text was updated successfully, but these errors were encountered: