浏览代码

Generate full-size SHA256 IDs for images and containers

Solomon Hykes 12 年之前
父节点
当前提交
190e2fa50f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      image.go

+ 1 - 1
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