Had this little annoying error with docker the other day.
We are running
boot2docker on OSX so we can use docker. But when trying to
docker login or
docker push we were getting this error
dial tcp: lookup index.docker.io on 192.168.0.1:53: no answer from server
This appears to be a DNS issue, and occurs when your DNS servers changes (move location for example) whilst the
boot2docker VM was running.
To fix it, simply re start the boot2docker vm: