`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.
More on Build failures and cache problems
`failed to solve: process "/bin/sh -c apt-get install -y curl" did not complete successfully: exit code: 100` with `E: Unable to locate package curl`Beginner`E: Failed to fetch http://deb.debian.org/... 404 Not Found` during build of an old image.Intermediate`COPY failed: file not found in build context or excluded by .dockerignore: stat app.jar: file does not exist`Beginner`ERROR: failed to solve: failed to compute cache key: "/requirements.txt" not found: not found`BeginnerBuild hangs at `RUN pip install ...` or `npm install` and eventually times out.Intermediate`failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error on line 12: unknown instruction: RUNN`Beginner