Generate full-size SHA256 IDs for images and containers

This commit is contained in:
Solomon Hykes 2013-03-23 19:33:00 -07:00
parent 0d46ddf7b4
commit 190e2fa50f

View file

@ -175,7 +175,7 @@ func ComputeId(content io.Reader) (string, error) {
if _, err := io.Copy(h, content); err != nil {
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