drone-plugins/drone-docker

dns issue during docker login

Closed this issue · 2 comments

hello I use this drone plugins to build some docker file since a while when I start plugin I get this issue during docker login command

Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.11:53: server misbehaving

I use dron in a nomad cluster and my docker daemon is configure with custom dns

   1   │ {
   2   │     "dns": [
   3   │         "172.17.0.1",
   4   │         "192.168.1.5"
   5   │     ],
   6   │     "mtu": 1420,
   7   │     "insecure-registries": [
   8   │         "192.168.1.0/24"
   9   │     ]
  10   │ }

I have try to launch the plugins directly with following and seem works correctly in this case

_ docker run --rm   -v $(pwd):$(pwd)   -w $(pwd) -e PLUGIN_USERNAME=toto -e PLUGIN_PASSWORD=tata   --privileged   plugins/docker 

so seem a docker in docker issue

try with custom_dns setting too

latest: Pulling from plugins/docker

Digest: sha256:02d837da89f912b4a432f125dfd2f98eedf462692811bea08406a3225ce5a491

Status: Downloaded newer image for plugins/docker:latest

+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock --dns 192.168.0.5

Detected registry credentials


Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.11:53: server misbehaving


time="2024-06-02T16:02:03Z" level=fatal msg="error authenticating: exit status 1"

Detected registry credentials


Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 127.0.0.11:53: server misbehaving


time="2024-06-02T16:02:03Z" level=fatal msg="error authenticating: exit status 1"

ok my bad just notice after 4 month that on my docker dns was wrong ...