Dockerfile instructions
RUN SSH mount
Build-time access to an SSH agent or key, requiring explicitly reviewed authorization and trusted build instructions. No real agent forwarding in this curriculum batch. Syntax shown for lookup only. Agent access permits authentication requests; use no actual agent in this lab.
Formal Syntax & Structure
docker syntaxdocker
RUN --mount=type=ssh[,id=<id>] <command>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| id | string | Identifier for supplied SSH input. |
Working Example
Example Snippetdocker
# Conceptual only: no SSH agent, key, or external connection used.