Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker network issue: Server misbehaving

Tags:

docker

I am trying to resolve this network issue which I am facing multiple time while performing any docker commands like "Docker search Ubuntu".
I get an error saying:

"Error response from daemon: server misbehaving. 

Can anyone help me on this?

like image 366
Abhishek Pandey Avatar asked Feb 04 '15 22:02

Abhishek Pandey


People also ask

Do Docker containers use host DNS?

DNS services Containers that use the default bridge network get a copy of this file, whereas containers that use a custom network use Docker's embedded DNS server, which forwards external DNS lookups to the DNS servers configured on the host.

What is DNS server in Docker?

By default, it has an entry with files dns , which means it will first check the /etc/hosts file, and then the DNS server. The Domain Name System (DNS) is a service that translates domain names into IP addresses, and in this article there will be a short overview of how to run a DNS server in a Docker container.

What is the Docker machine?

Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts with Docker Engine on them). Typically, you install Docker Machine on your local system. Docker Machine has its own command line client docker-machine and the Docker Engine client, docker.


1 Answers

For those who have this problem, it is typically related to having an issue with your DNS being unable to resolve index.docker.io. I had this issue today working from home where my internet connection has a default DNS server that is notoriously flakey.

My dev environment is OSX and I easily solved the issue by changing my DNS servers in network settings to Google's DNS servers (8.8.8.8 and 8.8.4.4) and then restarting my docker host through docker-machine restart MACHINENAME

like image 178
Ian Belcher Avatar answered Sep 22 '22 15:09

Ian Belcher