def _get_container_infos(config, container):
    '''
    Get container infos

    container
        Image Id / grain name

    return: dict
    '''
    client = _get_client(config)
    infos = None
    try:
        infos = _set_id(client.inspect_container(container))
    except Exception:
        pass
    return infos