def has_docker() -> bool:
    try:
        import docker
        docker.from_env()
        return True
    except (ImportError, docker.errors.DockerException):
        return False
def has_docker() -> bool:
    try:
        import docker
        docker.from_env()
        return True
    except (ImportError, docker.errors.DockerException):
        return False