You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ forward ssh-agent to build and run core operations #3581
A user was trying to build, inside Dagger, a Dockerfile containing an advanced buildkit feature: mount=type=ssh (relying on llb.MountSSHSock)
This mount option tells the Docker frontend to forward the ssh connection of the ssh-agent to the build step and execute some ssh commands with the forwarded ssh connection. We do not support it for the build and run operations (for now).
It is really useful, as it works locally, and with password protected ssh keys:
Even though it seems to be an easy fix, it might require some core.API design questions, if it gets optional: what does the option to forward the agent looks like in the core API
P.S: if you feel it's an easy win, I'm not against implementing it (if possible 😇)
Activity
grouville commentedon Oct 27, 2022
Even though it seems to be an easy fix, it might require some
core.APIdesign questions, if it gets optional: what does the option to forward the agent looks like in the core APIP.S: if you feel it's an easy win, I'm not against implementing it (if possible 😇)
cc @vito @sipsma @aluzzardi
marcosnils commentedon Nov 4, 2022
withMountedSSHmaybe?Alvise88 commentedon Nov 10, 2022
This is quite useful for Dockerfile:
RUN --mount=type=ssh go mod downloadsipsma commentedon Dec 6, 2022
Unix socket mounting should enable this now: #4025