def _get_container_infos(container):
 status = base_status.copy()
 client = _get_client()
 try:
  container_info = client.inspect_container(container)
  if container_info:
   _valid(status, id_=container_info['Id'], out=container_info)
 except Exception:
  pass
 if (not status['id']):
  raise CommandExecutionError('Container_id {0} could not be resolved to an existing container'.format(container))
 if (('id' not in status['out']) and ('Id' in status['out'])):
  status['out']['id'] = status['out']['Id']
 return status['out']

def _get_container_infos ( container ) : status = base_status . copy ( ) client = _get_client ( ) try : container_info = client . inspect_container ( container ) if container_info : _valid ( status , id_ = container_info [ 'Id' ] , out = container_info ) except Exception : pass if ( not status [ 'id' ] ) : raise CommandExecutionError ( 'Container_id {0} could not be resolved to an existing container' . format ( container ) ) if ( ( 'id' not in status [ 'out' ] ) and ( 'Id' in status [ 'out' ] ) ) : status [ 'out' ] [ 'id' ] = status [ 'out' ] [ 'Id' ] return status [ 'out' ]
get container infos we will try to resolve either by: - the mapping grain->docker id or directly - dockerid container image id / grain name .