drone-plugins / drone-docker

Drone plugin for publishing Docker images
http://plugins.drone.io/drone-plugins/drone-docker
Apache License 2.0
317 stars 318 forks source link

dns issue during docker login #444

Closed vincentDcmps closed 3 days ago

vincentDcmps commented 4 months ago

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

vincentDcmps commented 4 months ago

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"
vincentDcmps commented 3 days ago

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