Connection reset by peer happens while pulling base image with docker plugin

Hi there.

Recently, I started to get connection reset by peer error randomly while pulling base image for building an image. Here’s a full logs.

error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/65/6549ea3fb839a5afe8a01a10c32bbfb6cd58f5b2f7dac833d44d8b6ee2d2851d/data?verify=1550828284-6QcabjeSV10G0oip908XIT%2FIHqw%3D: read tcp 192.168.64.2:43740->104.18.121.25:443: read: connection reset by peer

It pulls image correctly after I do manual job restart. But getting this error more and more frequently. I think this issue is might related with cloudflare but I personally didn’t experience this error at all on my local machine. Only experiencing with plugins/drone.

Anyone having similar issue? Need your help.

Thanks.

The plugins/docker image is a small wrapper around the official docker:dind image, and executes a docker build. Drone has no impact on how docker build behaves, so if it is failing with connection issues it is either a Docker bug (less unlikely) or a networking issue (more likely).

1 Like