Anthony Finocchiaro
05/17/2023, 6:18 PMNate
05/18/2023, 3:06 AMDockerContainer
infrastructure)
these parts of trace show the docker client attempting and failing to connect to the docker daemon socket, which usually means docker is not running or its misconfigured somehow
5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/docker/transport/unixconn.py", line 30, in connect
5/15/2023 4:19:08 PM sock.connect(self.unix_socket)
5/15/2023 4:19:08 PMurllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 67, in _login
5/15/2023 4:19:08 PM client = self._get_docker_client()
5/15/2023 4:19:08 PM File "/usr/local/lib/python3.10/site-packages/prefect/infrastructure/docker.py", line 95, in _get_docker_client
5/15/2023 4:19:08 PM raise RuntimeError("Could not connect to Docker.") from exc
5/15/2023 4:19:08 PMRuntimeError: Could not connect to Docker.
Anthony Finocchiaro
05/18/2023, 4:29 PMNate
05/18/2023, 4:46 PMI am trying to run my Prefect Agent using a Rancher container.but im not sure if you mean the agent itself is running in this container or if its submitting containerized flow runs the easiest way to check whether docker is running is to exec into the place where the agent is running and do
docker pull hello-world
Anthony Finocchiaro
05/18/2023, 8:49 PMNate
05/18/2023, 9:48 PM