def exists(container):
    try:
        _get_container_infos(container)
        return True
    except Exception:
        return False
Check if a given container exists
dataset/ETHPy150Open saltstack/salt/salt/modules/dockerio.py/exists