0

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?

enter image description here

Diaboloxx
  • 121
  • 1
  • 8
  • 1
    Can you share your `docker-compose.yml`, `.gitlab-ci.yml` and `/etc/gitlab-runner/config.toml` files with us, please? – Richard Jun 13 '22 at 13:49
  • 3
    Perhaps this answer helps you: https://stackoverflow.com/questions/66071016/how-to-setup-gitlab-ci-e2e-tests-using-multiple-dockers/69955434#69955434 – Robert-Jan Kuyper Jun 13 '22 at 14:57
  • @Diaboloxx did you ever find a solution? – Dennis Jun 14 '23 at 20:03
  • @Dennis Sorry it was a long time ago and I forgot how we did exacty but all I remember is that we used custom gitlab runner for our job. – Diaboloxx Jun 27 '23 at 08:11

0 Answers0