Pulling from private registry

I’m having trouble using a docker container from a private registry, drone spits out default: Error response from daemon: Head http://10.120.252.1:5555/v2/test_image/manifests/latest: unauthorized: authentication required.

I’ve followed Images | Drone, created a dockerconfig secret containing:

{
  "auths": {
    "http://10.120.252.1:5555": {
      "auth": "<base64 of username:password>",
    }
  }
}

and added it to image_pull_secrets in my pipeline:

kind: pipeline
type: docker
name: default

steps:
  - name: greeting
    image: 10.120.252.1:5555/test_image
    commands:
      - echo hello

image_pull_secrets:
  - dockerconfig

Pulling images with docker pull 10.120.252.1:5555/test_image using these credentials works fine on the host machine.

I can’t find any additional information on the error in the logs of either drone or runner.

Running Drone 1.10.1 and Docker 20.10.5

try add image_pull_secrets config into step.

kind: pipeline
type: docker
name: default

steps:
  - name: greeting
    image: 10.120.252.1:5555/test_image
    image_pull_secrets:
      - dockerconfigjson
    commands:
      - echo hello

image_pull_secrets:
  - dockerconfig