Skip to content

Commit

Permalink
Merge pull request moby#5552 from dvdksn/add-checksum-sha256
Browse files Browse the repository at this point in the history
docs: add --checksum only supports sha256
  • Loading branch information
crazy-max authored Nov 26, 2024
2 parents 95d190e + 8135787 commit 83b43c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1476,8 +1476,8 @@ ADD [--checksum=<hash>] <src> ... <dir>
```

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`.
checksum is formatted as `sha256:<hash>`. SHA-256 is the only supported hash
algorithm.

```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 83b43c6

Please sign in to comment.