Interview Prep/Docker/Build failures and cache problems

`ERROR: failed to solve: dockerfile.v0: failed to resolve source metadata for docker.io/library/node:22-alpine: ... x509: certificate signed by unknown authority`

IntermediateTroubleshootingBuild failures and cache problems
Answer

Likely causes → Corporate TLS inspection proxy; the CA isn't trusted by the daemon/BuildKit.

Diagnose → openssl s_client -connect registry-1.docker.io:443 -showcerts

Fix → Install the corporate CA into the host trust store (update-ca-certificates) and restart docker; for docker-container buildx driver pass --config buildkitd.toml with CA; inside images add CA for RUN downloads.

Prevent → Distribute CA through config management.

All Docker questions Roadmap: Docker & containers

More on Build failures and cache problems