code: func matchImageIDOnly(inspected dockertypes.ImageInspect, image string) bool {
  	// If the image ref is literally equal to the inspected image's ID,
  	// just return true here (this might be the case for Docker 1.9,
  	// where we won't have a digest for the ID)
  	if inspected.ID == image {
  		return true
  	}
  
  	// Otherwise, we should try actual parsing to be more correct
  	ref, err := dockerref.Parse(image)
  	if err != nil {
  		klog.V(4).Infof("couldn't parse image reference %q: %v", image, err)
  		return false
  	}
  
  	digest, isDigested := ref.(dockerref.Digested)
  	if !isDigested {
  		klog.V(4).Infof("the image reference %q was not a digest reference", image)
  		return false
  	}
  
  	id, err := godigest.Parse(inspected.ID)
  	if err != nil {
  		klog.V(4).Infof("couldn't parse image ID reference %q: %v", id, err)
  		return false
  	}
  
  	if digest.Digest().Algorithm().String() == id.Algorithm().String() && digest.Digest().Hex() == id.Hex() {
  		return true
  	}
  
  	klog.V(4).Infof("The reference %s does not directly refer to the given image's ID (%q)", image, inspected.ID)
  	return false
  }
docs: // matchImageIDOnly checks that the given image specifier is a digest-only
  // reference, and that it matches the given image.