Skip to content

Commit f84cbe0

Browse files
authored
Merge pull request moby#4098 from AkihiroSuda/cherrypick-4085-0.12
[0.12 backport] docs: removed labs ref for ADD checksum and git
2 parents bb857a0 + 8c97bcc commit f84cbe0

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,6 @@ guide – Leverage build cache](https://docs.docker.com/develop/develop-images/d
12951295
in its path.
12961296

12971297
### Verifying a remote file checksum `ADD --checksum=<checksum> <http src> <dest>`
1298-
> **Note**
1299-
>
1300-
> Not yet available in stable syntax, use [`docker/dockerfile:1-labs`](#syntax) version (`1.5-labs` or newer).
1301-
> Planned to be included in `docker/dockerfile:1.6`.
13021298

13031299
The checksum of a remote file can be verified with the `--checksum` flag:
13041300

@@ -1310,18 +1306,13 @@ The `--checksum` flag only supports HTTP sources currently.
13101306

13111307
### Adding a git repository `ADD <git ref> <dir>`
13121308

1313-
> **Note**
1314-
>
1315-
> Not yet available in stable syntax, use [`docker/dockerfile:1-labs`](#syntax) version (`1.5-labs` or newer).
1316-
> Planned to be included in `docker/dockerfile:1.6`.
1317-
13181309
This form allows adding a git repository to an image directly, without using the `git` command inside the image:
13191310
```
13201311
ADD [--keep-git-dir=<boolean>] <git ref> <dir>
13211312
```
13221313

13231314
```dockerfile
1324-
# syntax=docker/dockerfile:1-labs
1315+
# syntax=docker/dockerfile:1
13251316
FROM alpine
13261317
ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
13271318
```
@@ -1333,7 +1324,7 @@ The `--keep-git-dir=true` flag adds the `.git` directory. This flag defaults to
13331324
To add a private repo via SSH, create a Dockerfile with the following form:
13341325

13351326
```dockerfile
1336-
# syntax=docker/dockerfile:1-labs
1327+
# syntax=docker/dockerfile:1
13371328
FROM alpine
13381329
ADD [email protected]:foo/bar.git /bar
13391330
```

0 commit comments

Comments
 (0)