LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

To pull from a private registry over HTTPS with a self-signed certificate, what must the Docker daemon be given, and why set the cert file read-only?

Place the registry's CA certificate at /etc/docker/certs.d/<registry:port>/ca.crt so the daemon trusts that TLS endpoint; set it chmod 444 (read-only) so unprivileged users can't tamper with it.

A private registry served over HTTPS with a self-signed certificate isn't trusted by the daemon's default CA set, so pulls fail with a TLS error. You make the daemon trust it by installing the registry's CA cert where Docker looks for per-registry certs:

# fetch the registry's cert, then:
sudo mkdir -p /etc/docker/certs.d/registry.islab.ls.eee.intern:5000
sudo cp ca.crt /etc/docker/certs.d/registry.islab.ls.eee.intern:5000/ca.crt
sudo chmod 444 /etc/docker/certs.d/registry.islab.ls.eee.intern:5000/ca.crt
  • The directory name is the registry host and port; the daemon uses ca.crt there to validate that registry's TLS certificate (no insecure --insecure-registry flag needed).
  • chmod 444 (read-only) so that unprivileged users cannot modify the trust anchor. A writable CA file would let an attacker swap in their own CA and MITM the registry — defeating the whole point.

After trusting the registry you docker login to push/pull. (If the cert error persists you may also need to add the CA at OS level with update-ca-certificates.) The broader lesson: trust in a registry rests on a certificate, and that certificate's integrity must itself be protected — a recurring PKI theme.

Go deeper:

From Quiz: ISLAB / Docker Security | Updated: Nov 26, 2026