Skip to content

Bug: x509 certificate error when pulling images (Cloudflare R2 backend) #2517

@xscriptor

Description

@xscriptor

Hi. I'm experiencing a TLS certificate error when trying to pull official images (like mysql:8.0 or nginx:alpine) using docker-compose up. The issue seems related to the Cloudflare R2 storage backend certificates.

Error message:
tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match docker-images-prod.[...].r2.cloudflarestorage.com

Workaround:
The only way I could fix it and pull the images was by adding "registry-mirrors": ["https://mirror.gcr.io"] to my /etc/docker/daemon.json.

Environment:

OS: Arch X Linux - Ubuntu WSL
Tool: Docker / Docker Compose

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis issue needs to triage by our team (applied by default to new issue)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions