Skip to content

Pipleine fail: Cannot connect to the Docker daemon at unix:///var/run/docker.sock #16

@VincentSchmid

Description

@VincentSchmid

Environment

I'm using the : github.com/pagopa/terraform-azurerm-v3//container_app_job_gh_runner?ref=v7.28.0
module, and it's using this image (which is the default):
ghcr.io/pagopa/github-self-hosted-runner-azure:beta-dockerfile-v2@sha256:c7ebe4453578c9df426b793366b8498c030ec0f47f753ea2c685a3c0ec0bb646

Problem Description

I am encountering an error in my pipeline when using the container_app_job_gh_runner module. After updating from version 7.23.0 to 7.28.0, the pipeline fails when trying to install an imported github action. It fails when trying to pull the Docker image. I think the problem lies with the github runner image, not the module.

Error Messages and Logs

Pull down action image 'danielflook/terraform-github-actions@sha256:2fa1462c0d719834b0dd18acf08914e306405b8d8538adb1b4db8ef940dfe6ba'
  /usr/bin/docker pull danielflook/terraform-github-actions@sha[2](https://github.com/VincentSchmid/dnsLookup/actions/runs/7024315159/job/19114828433#step:2:2)56:2fa1462c0d719834b0dd18acf08914e306405b8d8538adb1b4db8ef940dfe6ba
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  Warning: Docker pull failed with exit code 1, back off 1.701 seconds before retry.
  /usr/bin/docker pull danielflook/terraform-github-actions@sha256:2fa1462c0d719834b0dd18acf08914e306405b8d8538adb1b4db8ef940dfe6ba
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  Warning: Docker pull failed with exit code 1, back off 6.928 seconds before retry.
  /usr/bin/docker pull danielflook/terraform-github-actions@sha256:2fa1462c0d7198[3](https://github.com/VincentSchmid/dnsLookup/actions/runs/7024315159/job/19114828433#step:2:3)4b0dd18acf08914e306405b8d8538adb1b4db8ef940dfe6ba
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Error: Docker pull failed with exit code 1

Steps to Reproduce

I have the following step in my pipeline

...
- name: Use branch workspace
        uses: dflook/terraform-new-workspace@v1.37.0
        with:
          path: terraform
          workspace: ${{ env.TF_WORKSPACE }}
...

What I've Tried

I tried using different images from the ghcr

Additional Information

I was using v7.23.0 of the module and it used to work, but it stopped working (I think the default image is no longer available?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions