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.crtthere to validate that registry's TLS certificate (no insecure--insecure-registryflag 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:
Docker Docs: Protect the Docker daemon socket — the TLS trust model the certs.d directory extends.
Docker Docs: Docker Engine security — the broader registry and daemon trust picture.