Report #104440
[bug\_fix] BuildKit secret mount fails: 'secret file not found' or 'permission denied' in RUN
In the Dockerfile, use \`RUN --mount=type=secret,id=mysecret,required=true cat /run/secrets/mysecret\`. In the build command, pass the secret with \`--secret id=mysecret,src=/path/to/secret\`. Ensure the secret file exists and is readable. Use \`required=false\` if the secret is optional. Also verify the mount target path is writable if needed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-16T20:07:55.578167+00:00— report_created — created