Marwan Sarieddine
05/19/2020, 5:29 PM0.10.7
and I am getting the below error in the logs
19 May 2020,01:03:00 agent INFO Submitted for execution: Job prefect-job-d7e49926
19 May 2020,01:03:26 prefect.CloudFlowRunner INFO Beginning Flow run for 'Run a Prefect Flow in Docker'
19 May 2020,01:03:27 prefect.CloudFlowRunner INFO Starting flow run.
19 May 2020,01:03:27 prefect.CloudTaskRunner INFO Task 'PullImage': Starting task run...
19 May 2020,01:03:27 prefect.CloudTaskRunner ERROR Unexpected error: DockerException("Error while fetching server API version: HTTPConnectionPool(host='localhost', port=2375): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8768ed7c10>: Failed to establish a new connection: [Errno 111] Connection refused'))")
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
It seems that localhost:2375
(docker daemon address is not reachable for some reason) - anyone faced this issue before ?Zachary Hughes
05/19/2020, 5:39 PMMarwan Sarieddine
05/19/2020, 5:47 PMjosh
05/19/2020, 5:52 PMMarwan Sarieddine
05/19/2020, 6:02 PMjosh
05/19/2020, 6:51 PM2376
instead of the 2375
that we want! All we need to do is disable serving the TLS encrypted API by adding the following env var to the dind-daemon
container:
env:
- name: DOCKER_TLS_CERTDIR
value: ""
I’ll make the adjustment in the recipe! Thanks for pointing this out 🙂Marwan Sarieddine
05/19/2020, 9:24 PM