From e164caece25bab90e5e81417352f5b64b789c6c1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 3 Feb 2023 18:39:24 +0100 Subject: [PATCH] docs: update syntax for labs channel in examples The dockerfile:1-labs frontend is now updated to 1.5-labs, which includes this feature Signed-off-by: Sebastiaan van Stijn (cherry picked from commit faf476047e0d13d93f4fe57068cdea1f451b1a01) --- frontend/dockerfile/docs/reference.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/dockerfile/docs/reference.md b/frontend/dockerfile/docs/reference.md index e6d2809f30cc..0065a59eb062 100644 --- a/frontend/dockerfile/docs/reference.md +++ b/frontend/dockerfile/docs/reference.md @@ -1323,7 +1323,7 @@ ADD [--keep-git-dir=] ``` ```dockerfile -# syntax=docker/dockerfile-upstream:master-labs +# syntax=docker/dockerfile:1-labs FROM alpine ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit ``` @@ -1331,9 +1331,11 @@ ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to false. ### Adding a private git repository + To add a private repo via SSH, create a Dockerfile with the following form: + ```dockerfile -# syntax = docker/dockerfile-upstream:master-labs +# syntax=docker/dockerfile:1-labs FROM alpine ADD git@git.example.com:foo/bar.git /bar ```