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
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