mirror of https://github.com/docker/docs.git
Generate full-size SHA256 IDs for images and containers
This commit is contained in:
parent
0d46ddf7b4
commit
190e2fa50f
2
image.go
2
image.go
|
@ -175,7 +175,7 @@ func ComputeId(content io.Reader) (string, error) {
|
||||||
if _, err := io.Copy(h, content); err != nil {
|
if _, err := io.Copy(h, content); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("%x", h.Sum(nil)[:8]), nil
|
return fmt.Sprintf("%x", h.Sum(nil)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Image includes convenience proxy functions to its graph
|
// Image includes convenience proxy functions to its graph
|
||||||
|
|
Loading…
Reference in New Issue