code: func (d *stiDocker) CheckImage(name string) (*api.Image, error) {
  	name = getImageName(name)
  	inspect, err := d.InspectImage(name)
  	if err != nil {
  		glog.V(4).Infof("error inspecting image %s: %v", name, err)
  		return nil, s2ierr.NewInspectImageError(name, err)
  	}
  	if inspect != nil {
  		image := &api.Image{}
  		updateImageWithInspect(image, inspect)
  		return image, nil
  	}
  
  	return nil, nil
  }
docs: // CheckImage checks image from the local registry.