The error I got:
pegasus@pegasus:~/Downloads/Docker_deb$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp: lookup proxy.example.com on 8.8.8.8:53: no such host.
See 'docker run --help'.
I installed docker using this instructions:
But when I use the following command I get error.
pegasus@pegasus:~/Downloads/Docker_deb$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": proxyconnect tcp: dial tcp: lookup proxy.example.com on 8.8.8.8:53: no such host.
See 'docker run --help'.
pegasus@pegasus:~$ sudo dockerd --debug
INFO[2024-06-25T04:10:55.092883645+06:00] Starting up
DEBU[2024-06-25T04:10:55.093453907+06:00] Listener created for HTTP on unix (/var/run/docker.sock)
DEBU[2024-06-25T04:10:55.110352598+06:00] Golang's threads limit set to 110340
DEBU[2024-06-25T04:10:55.110827666+06:00] metrics API listening on /var/run/docker/metrics.sock
DEBU[2024-06-25T04:10:55.113904708+06:00] Using default logging driver json-file
DEBU[2024-06-25T04:10:55.114060596+06:00] No quota support for local volumes in /var/lib/docker/volumes: Filesystem does not support, or has not enabled quotas
DEBU[2024-06-25T04:10:55.114096006+06:00] processing event stream module=libcontainerd namespace=plugins.moby
DEBU[2024-06-25T04:10:56.076431002+06:00] Cleaning up old mountid : start.
failed to start daemon: error while opening volume store metadata database (/var/lib/docker/volumes/metadata.db): timeout
2
Answers
My issue was solved by taking the following steps:
I removed everything related to docker
Then installed docker like this:
N.B. You might need to add your user to docker group.
Have a look in the
/etc/docker/daemon.json
file. The only way i can get docker to replicate this behaviour is to set the following in the daemon.jsonAfter i restart the docker service I get this error
if i remove the proxy config in the
daemon.json
then runsudo systemctl restart docker
then it works again