Passes the host's SSH agent socket into BuildKit so RUN steps can clone private repositories over SSH. The name default refers to the socket in $SSH_AUTH_SOCK. Also supports named keys, for example --ssh github=~/.ssh/id_ed25519. Requires the docker-container driver.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.