http: server gave HTTP response to HTTPS client Docker Origin: Platform & cloud OSI layer 7 · Application Last updated 12 Oct 2026

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.

Exact message you may see server gave HTTP response to HTTPS clienthttp: server gave HTTP response to HTTPS client
Seen on: Docker

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

  1. Add "insecure-registries" in daemon.json and restart Docker (lab use only)
  2. Enable TLS on the registry
  3. Use the HTTPS port

Detailed fix by platform

Docker

  1. bash
    # /etc/docker/daemon.json (Docker Desktop: Settings → Docker Engine)
    { "insecure-registries": ["192.168.1.50:5000"] }
    sudo systemctl restart docker

How to diagnose

  1. Registry — curl http://host:5000/v2/ vs https://
  2. 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:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

1000 — Cloudflare Error 1000: DNS points to prohibited IP (Cloudflare)1000AADSTS90002 — AADSTS90002: Tenant 'x' not found (Azure)AADSTS90002AH00558 — Apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name (Nginx / Apache)AH00558AzureWebJobsStorage — Azure Functions: Value cannot be null. (Parameter 'connectionString') / Missing value for AzureWebJobsStorage (Azure)AzureWebJobsStorageClient.Timeout exceeded — Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded) (Docker)Client.Timeout exceed…ConnectionString property has not been initialized — InvalidOperationException: The ConnectionString property has not been initialized (.NET)ConnectionString prop…database flags — Cloud SQL: invalid database flag value / instance fails to restart after a flag change (Google Cloud / Firebase)database flagsdenied — denied: requested access to the resource is denied (docker push) (Docker)deniedhttp: ser…

Explore the map of this error Full error map →

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