mirror of https://github.com/docker/docs.git
Merge pull request #20654 from dvdksn/compose-link-runmount-ssh
compose: fix link to RUN --mount=type=ssh
This commit is contained in:
commit
2b3cf1c3d7
|
@ -505,10 +505,9 @@ build:
|
|||
ssh:
|
||||
- myproject=~/.ssh/myproject.pem
|
||||
```
|
||||
The image builder can then rely on this to mount the SSH key during build.
|
||||
For illustration, [BuildKit extended syntax](https://github.com/compose-spec/compose-spec/pull/234/%5Bmoby/buildkit@master/frontend/dockerfile/docs/syntax.md#run---mounttypessh%5D(https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#run---mounttypessh)) can be used to mount the SSH key set by ID and access a secured resource:
|
||||
|
||||
`RUN --mount=type=ssh,id=myproject git clone ...`
|
||||
The image builder can then rely on this to mount the SSH key during build.
|
||||
For more information, see the [`RUN --mount=type=ssh` Dockerfile reference](/reference/dockerfile.md#run---mounttypessh).
|
||||
|
||||
### shm_size
|
||||
|
||||
|
|
Loading…
Reference in New Issue