Always store images with tarsum.v1 checksum added
Updates `image.StoreImage()` to always ensure that images that are installed in Docker have a tarsum.v1 checksum. Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
This commit is contained in:
parent
feb02197c1
commit
d01b451dd5
2 changed files with 13 additions and 0 deletions
|
@ -122,6 +122,7 @@ type tHashConfig struct {
|
|||
}
|
||||
|
||||
var (
|
||||
// NOTE: DO NOT include MD5 or SHA1, which are considered insecure.
|
||||
standardHashConfigs = map[string]tHashConfig{
|
||||
"sha256": {name: "sha256", hash: crypto.SHA256},
|
||||
"sha512": {name: "sha512", hash: crypto.SHA512},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue