mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Prepend hash method to the image checksum
This commit is contained in:
parent
6e936c8fd3
commit
ea3374bcb0
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ func (container *Container) RwChecksum() (string, error) {
|
|||
if _, err := io.Copy(h, rwData); err != nil {
|
||||
return "", err
|
||||
}
|
||||
return hex.EncodeToString(h.Sum(nil)), nil
|
||||
return "sha256:"+hex.EncodeToString(h.Sum(nil)), nil
|
||||
}
|
||||
|
||||
func (container *Container) Export() (Archive, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue