[solved] Pulling from registry-1.docker.io instead of private registry


With a docker runner (Drone 1.9.2), I get this error in clone step :

default: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp connect: connection refused
default – clone: Error

My .drone.yml is :

kind: pipeline
type: docker
name: default

- name: pull
  image: docker.mydomain.com/my-image:latest
    - echo "hello !"

How to force the registry used to get the docker image in the clone step ?

I found the answer myself : https://docs.drone.io/runner/docker/configuration/reference/drone-runner-clone-image/