Drone docker-plugin fails during container build

We’re running drone.io on rancher kubernetes.

Versions:
Drone.io Server version 1.6.5
drone-kube-runner version 1.0.0-beta2
Rancher v2.3.5
Kubernetes 1.16.8
docker-ce 19.03.8
Platform: Ubuntu 18.04 LTS
Infra: Azure

During our build pipeline the container build step hangs and the last thing shown in the logs is:

Step 1/6 : FROM node:12-alpine
12-alpine: Pulling from library/node

Digest: sha256:6b5b783c9cfe229af0bd5b0b677dd32005bb22d58465f3d0fe7fbd1c60ce068c
Status: Downloaded newer image for node:12-alpine
—> f77abbe89ac1
Step 2/6 : RUN apk --no-cache update && apk add --no-cache jq bash curl vim && rm -rf /var/cache/apk/* /tmp/*
—> Running in c7b098cca491
fetch

and it never progresses past this point. This isn’t an issue with the node:12-alpine image because I can run this same step locally. And I can even run it directly on the host that runs the k8s cluster. This step just seems to fail within the drone-plugin container of the drone pipeline.

Any ideas on the issue or how to resolve this?

Regards,
James

This is the last output we get from the build step in the pipeline, where the pipeline hangs and never progresses.

Step 1/6 : FROM node:12-alpine
12-alpine: Pulling from library/node

Digest: sha256:6b5b783c9cfe229af0bd5b0b677dd32005bb22d58465f3d0fe7fbd1c60ce068c
Status: Downloaded newer image for node:12-alpine
—> f77abbe89ac1
Step 2/6 : RUN apk --no-cache update && apk add --no-cache jq bash curl vim && rm -rf /var/cache/apk/* /tmp/*
—> Running in c7b098cca491
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz

I can run this same step locally. And I can even run it directly on the host that runs the k8s cluster. This step just seems to fail within the drone-plugin container of the drone pipeline.

As a side note, running docker build on the host is not necessarily an apples to apples comparison since the plugin uses docker-in-docker, which can have network implications. A better test would be to use the official docker:dind image (on which this plugin is based) inside a Pod and run docker build as the container command.