Skip to content

Commit 664c2b4

Browse files
authored
Merge pull request moby#5237 from dvdksn/add-checksum-algorithms
docs: list supported algorithms for ADD --checksum
2 parents b999247 + 70da3dd commit 664c2b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,9 @@ ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
14041404
ADD [--checksum=<hash>] <src> ... <dir>
14051405
```
14061406

1407-
The `--checksum` flag lets you verify the checksum of a remote resource:
1407+
The `--checksum` flag lets you verify the checksum of a remote resource. The
1408+
checksum is formatted as `<algorithm>:<hash>`. The supported algorithms are
1409+
`sha256`, `sha384`, and `sha512`.
14081410

14091411
```dockerfile
14101412
ADD --checksum=sha256:24454f830cdb571e2c4ad15481119c43b3cafd48dd869a9b2945d1036d1dc68d https://mirrors.edge.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz /

0 commit comments

Comments
 (0)