I newly started using Gitlab CICD. I created a dedicated(specific) runner with docker executor using AWS EC2 and am trying to run a job of build and push a docker file, build multiple docker images , and push it to AWS multiple ecr repos. I am using docker-compose for this.
The pipeline seems to work well when i use gitlabs shared runner and the job succeds, but when i do the same with dedicated runner the job is failing at docker-compose build with the error
“docker.errors.DockerException: Error while fetching server API version: HTTPConnectionPool(host=‘localhost’, port=2376): Max retries exceeded with url: /version (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f9a5a9cbc90>: Failed to establish a new connection: [Errno 111] Connection refused’))”
Can somebody help me with this.
Thank you in advance.