Andy Dyer
10/01/2020, 5:34 PMWith DOCKER_HOST = <tcp://docker:2376>
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnectionPool(host='docker', port=2376): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb67baf4760>: Failed to establish a new connection: [Errno 111] Connection refused'))
without DOCKER_HOST set
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
nicholas
Andy Dyer
10/01/2020, 7:15 PMRegister it with Prefect Cloud/Server in a gitlab CI pipeline? Is that when the docker image push step is failing?
yeah we are using a cloud backend and the registration works locally. I dont think its a prefect issue. Probably more of a connection to the docker daemon running in gitlab cipip3 install -r requirements.txt;
printf "%s" "$SERVICE_KEY_JSON" > "keyfile.json";
gcloud auth activate-service-account --key-file keyfile.json;
prefect backend cloud;
prefect auth login --token $PREFECT_TENANT_TOKEN;
python3 main.py;
nicholas
Andy Dyer
10/01/2020, 7:20 PMnicholas
Andy Dyer
10/01/2020, 7:32 PMwhich docker
does point to /usr/local/bin/docker
nicholas
Andy Dyer
10/01/2020, 7:34 PMps aux | grep dockerd
?nicholas
dockerd
Andy Dyer
10/01/2020, 7:39 PM/bin/bash: line 120: dockerd: command not found
do you have an image in mind that would have it preinstalled. I can just switch to installing the gcloud cli probably faster as a wholenicholas
Andy Dyer
10/01/2020, 7:41 PMnicholas
Andy Dyer
10/01/2020, 8:13 PMrequests.exceptions.ConnectionError: HTTPConnectionPool(host='docker', port=2376): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f724125ae80>: Failed to establish a new connection: [Errno 111] Connection refused'))
docker.errors.DockerException: Error while fetching server API version: HTTPConnectionPool(host='docker', port=2376): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f724125ae80>: Failed to establish a new connection: [Errno 111] Connection refused'))
nicholas
$DOCKER_HOST
in your machine's environment?Andy Dyer
10/01/2020, 8:19 PMDOCKER_HOST=<tcp://docker:2376>