From f99be0f9dfdc426d36f7f0955ce26d200b81580f Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:04:28 +0200 Subject: [PATCH] compose: fix link to RUN --mount=type=ssh Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/reference/compose-file/build.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/reference/compose-file/build.md b/content/reference/compose-file/build.md index 03dd067fc5..a0d5e65d93 100644 --- a/content/reference/compose-file/build.md +++ b/content/reference/compose-file/build.md @@ -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