Pipeline issue

Hello,

I keep on getting the issue:

ERROR: failed to build: failed to fetch builder image ‘Docker’: Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?

WARNING: gl-auto-build-variables.env: no matching files. Ensure that the artifact path is relative to the working directory (/builds/mariana.el-banate-pereira/tardis-integration) 45
ERROR: No files to upload

Does anyone have experience with this issue?

Thanks for the help!

Hi,

Please share your .gitlab-ci.yml configuration so we can help you further.

What this looks like to me is that you are trying to execute a docker command where an environment for that isn’t properly built. Please have a look at docs on ways how to build docker images in the pipeline. There are three ways, you need to decide based on your runner executor and/or requirements.

Hi,
this is how my gitlab-ci.yml file look like:

default:
image: “Quay
tags: [ “run_docker” ]

variables:
ROVER_BASE_IMAGE: “Quay

DOCKER_AUTH_CONFIG: “${docker_auth_config_solman}”
#OPENAPI_FILE_PATH:
RESOURCE_PATH: “$CI_PROJECT_DIR”
ROVER_ENVIRONMENT: “playground”
ROVER_TOKEN: “${solman_rover_token}”

stages:

  • expose
  • subscribe
  • cleanup

apply-api-spec:
stage: expose
when: manual
script:
- roverctl apply -f “API_SPEC”

.Roverbase:
image: “Quay
variables:
ROVER_AUTH_CONFIG: “${docker_auth_config_solman}”
ROVER_ACTION: “apply”
before_script:
- set -ex
when: manual

.Expose_Roverbase:
extends: .Roverbase
stage: expose
script:
- roverctl apply -f “Rover.yaml”
- roverctl apply -f “Nem_getData.yml”
- roverctl apply -f “Nem_setData.yml”

provide_playground:
extends: .Expose_Roverbase
variables:
ROVER_ENVIRONMENT: “playground”
ROVER_TOKEN: “${solman_rover_token}”

Expose-API:
stage: expose
when: manual
script:

  • roverctl apply -f “expose”

Subscribe-to-API:
stage: subscribe
when: manual
script:
- roverctl apply -f “subscribe”

Delete-API:
stage: cleanup
when: manual
script:
- roverctl delete -f “expose”

Delete-Subscription:
stage: cleanup
when: manual
script:
- roverctl delete -f “subscribe”

Thanks for the help!

Hey,

Firstly, could you please edit your post, so your yml file is nicely formatted - it makes it easier to read and understand what’s happening.

Secondly, you didn’t say which of your jobs is failing with this issue?

Thirdly, I have no idea what Rover is - but perhaps someone else from the community can help you. I gave you my hint in the previous post - I guess one of your jobs / rover commands is doing something with docker behind the scenes and you need to make sure your Runner has access to it (again, use docs as reference)

It seems like your build process is unable to connect to the Docker daemon. Ensure that Docker is running on your machine, and if you’re using Docker in a CI/CD environment, make sure it’s properly configured. Check the Docker daemon status, and verify the connection settings in your build configuration.