http: server gave HTTP response to HTTPS client (insecure registry)
Docker spoke HTTPS to a registry that only serves plain HTTP — typically a local or lab registry.
server gave HTTP response to HTTPS clienthttp: server gave HTTP response to HTTPS client Meaning
Docker only uses plain HTTP for registries explicitly listed as insecure-registries (except localhost). Add the registry to daemon.json — or better, put TLS in front of it.
Common causes
- Local/private registry running without TLS
- Registry address not in insecure-registries
- Using the wrong port (HTTP port instead of HTTPS)
⚡ Quick fix
- Add "insecure-registries" in daemon.json and restart Docker (lab use only)
- Enable TLS on the registry
- Use the HTTPS port
Detailed fix by platform
Docker
- bash
# /etc/docker/daemon.json (Docker Desktop: Settings → Docker Engine) { "insecure-registries": ["192.168.1.50:5000"] } sudo systemctl restart docker
How to diagnose
- Registry — curl http://host:5000/v2/ vs https://
- Config — docker info | grep -A3 'Insecure Registries'
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Docker
- pull access denied pull access denied for image, repository does not exist or may require 'docker login'
- lookup registry-1.docker.io: no such host dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build
- did not complete successfully failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 12 Oct 2026