()
Checks that docker client is reachable
Checks that docker client is reachable
Checks that docker client is reachable
def get_docker_client() -> "docker.client.DockerClient":
    """Checks that docker client is reachable"""
    # import inside def for performance
    import docker

    try:
        client = docker.from_env()
        client.info()
        return client
    except Exception as e:
        logging.debug(e)
        raise DockerFailureException()
def get_docker_client ( ) -> "docker.client.DockerClient" : # import inside def for performance import docker try : client = docker . from_env ( ) client . info ( ) return client except Exception as e : logging . debug ( e ) raise DockerFailureException ( )