From 8c97bcc8c9a866a7d688ebdce55d4934b82f54a6 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:17:44 +0200 Subject: [PATCH] docs: removed labs ref for ADD checksum and git ADD --checksum and git url graduated in v1.6, removing the references to labs channel since they are now in stable. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> (cherry picked from commit dcc83f8c0bd335e2c6334df0fd8bf19802542f86) Signed-off-by: Akihiro Suda --- frontend/dockerfile/docs/reference.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/frontend/dockerfile/docs/reference.md b/frontend/dockerfile/docs/reference.md index 5a76d25d0af5..895fb98aa6af 100644 --- a/frontend/dockerfile/docs/reference.md +++ b/frontend/dockerfile/docs/reference.md @@ -1295,10 +1295,6 @@ guide – Leverage build cache](https://docs.docker.com/develop/develop-images/d in its path. ### Verifying a remote file checksum `ADD --checksum= ` -> **Note** -> -> Not yet available in stable syntax, use [`docker/dockerfile:1-labs`](#syntax) version (`1.5-labs` or newer). -> Planned to be included in `docker/dockerfile:1.6`. The checksum of a remote file can be verified with the `--checksum` flag: @@ -1310,18 +1306,13 @@ The `--checksum` flag only supports HTTP sources currently. ### Adding a git repository `ADD ` -> **Note** -> -> Not yet available in stable syntax, use [`docker/dockerfile:1-labs`](#syntax) version (`1.5-labs` or newer). -> Planned to be included in `docker/dockerfile:1.6`. - This form allows adding a git repository to an image directly, without using the `git` command inside the image: ``` ADD [--keep-git-dir=] ``` ```dockerfile -# syntax=docker/dockerfile:1-labs +# syntax=docker/dockerfile:1 FROM alpine ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit ``` @@ -1333,7 +1324,7 @@ The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to To add a private repo via SSH, create a Dockerfile with the following form: ```dockerfile -# syntax=docker/dockerfile:1-labs +# syntax=docker/dockerfile:1 FROM alpine ADD git@git.example.com:foo/bar.git /bar ```