Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

Configure registry mirrors and insecure registries for containerd.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Private registry with self-signed TLS.

What I'd do → Preferred: trust the CA. With containerd use config_path and /etc/containerd/certs.d/reg.example.com/hosts.toml:

server = "https://reg.example.com"
[host."https://reg.example.com"]
  ca = "/etc/containerd/certs.d/reg.example.com/ca.crt"

For Docker: place the CA in /etc/docker/certs.d/reg.example.com/ca.crt, no restart needed.

Why → Avoids disabling TLS verification.

Interview tip → insecure-registries is a last resort.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman