From 190e2fa50f62c0b2a497dac39a5154bd35e46b3a Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Sat, 23 Mar 2013 19:33:00 -0700 Subject: [PATCH] Generate full-size SHA256 IDs for images and containers --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index 1a417a357b..cdc32ddfad 100644 --- a/image.go +++ b/image.go @@ -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