Docker BuildKit experimental features failing with GPG secret key error during image resolution

Had the same problem last week. BuildKit daemon runs in its own environment and can’t reach your GPG keys. Quick fix: use docker login instead of credential helpers - stores creds in plaintext but bypasses the GPG issue. Or try setting the GNUPGHOME environment variable when you run the build command.