def _get_image_infos(image):
 status = base_status.copy()
 client = _get_client()
 try:
  infos = client.inspect_image(image)
  if infos:
   _valid(status, id_=infos['Id'], out=infos, comment='found')
 except Exception:
  pass
 if (not status['id']):
  _invalid(status)
  raise CommandExecutionError("ImageID '{0}' could not be resolved to an existing Image".format(image))
 return status['out']

def _get_image_infos ( image ) : status = base_status . copy ( ) client = _get_client ( ) try : infos = client . inspect_image ( image ) if infos : _valid ( status , id_ = infos [ 'Id' ] , out = infos , comment = 'found' ) except Exception : pass if ( not status [ 'id' ] ) : _invalid ( status ) raise CommandExecutionError ( "ImageID '{0}' could not be resolved to an existing Image" . format ( image ) ) return status [ 'out' ]
verify that the image exists we will try to resolve either by: - name - image_id - tag image image name / image id / image tag returns the image id .