def __virtual__():
    if HAS_DOCKER:
        return __virtualname__
    return (False, 'dockerio execution module not loaded: docker python library not available.')
Only load if docker libs are present
dataset/ETHPy150Open saltstack/salt/salt/modules/dockerio.py/__virtual__