SSH key forwarding with mount=type=ssh stopped working

I had docker working like clockwork, but suddenly SSH forwarding during build stopped working. I’m trying to pull from a private Github repository. It works fine on my computer but not from a Docker container running on my computer. It’s a Windows computer, and the container is Linux.

How can I troubleshoot this?

Did you update Docker Desktop or Windows before the isse started?

Not immediately before, but it’s not impossible that I did it between the last time it worked.

I did also terminate a container build midway before I noticed the issue. I was using --no-cache after, but wondering if I could have corrupted some state.

Nevermind, I was missing --ssh default from the build command.

Check docker container log file to check for any error or message related to SSH key forwarding.