Skip to content

Commit

Permalink
Merge pull request #5237 from dvdksn/add-checksum-algorithms
Browse files Browse the repository at this point in the history
docs: list supported algorithms for ADD --checksum
  • Loading branch information
crazy-max authored Aug 10, 2024
2 parents b999247 + 70da3dd commit 664c2b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,9 @@ ADD --keep-git-dir=true https://github.com/moby/buildkit.git#v0.10.1 /buildkit
ADD [--checksum=<hash>] <src> ... <dir>
```

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

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

0 comments on commit 664c2b4

Please sign in to comment.