code: func (d *stiDocker) IsImageInLocalRegistry(name string) (bool, error) {
  	name = getImageName(name)
  	resp, err := d.InspectImage(name)
  	if resp != nil {
  		return true, nil
  	}
  	if err != nil && !dockerapi.IsErrNotFound(err) {
  		return false, s2ierr.NewInspectImageError(name, err)
  	}
  	return false, nil
  }
docs: // IsImageInLocalRegistry determines whether the supplied image is in the local registry.