-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4098 from AkihiroSuda/cherrypick-4085-0.12
[0.12 backport] docs: removed labs ref for ADD checksum and git
- Loading branch information
Showing
1 changed file
with
2 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=<checksum> <http src> <dest>` | ||
> **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 <git ref> <dir>` | ||
|
||
> **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=<boolean>] <git ref> <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 [email protected]:foo/bar.git /bar | ||
``` | ||
|