I have a Node.js application that connects to a Postgres database and I have made some integration tests and want to launch them in the Gitlab CI pipeline using docker-compose.
I have containerized the app and made a docker-compose file and everything works fine locally.
Now I want to execute the docker-compose up
command in the Gitlab ci pipeline with the shared runners.
I tried:
1 - The DinD solution in the gitlab ci documentation.
2 - Changing different versions of docker.
3 - This solution here.
Problem:
The pipeline fails at the docker info
command with the following error:
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?