Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VincentSchmid opened this issue Nov 28, 2023 · 2 comments

Comments

@VincentSchmid
Copy link

VincentSchmid commented Nov 28, 2023

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/[email protected]
        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?)

@Krusty93
Copy link
Contributor

Hi @VincentSchmid ,
Could you please try to upgrade the module version to the current latest - the v7.34.0?

Please let me know if you got stuck again

@VincentSchmid
Copy link
Author

Just tried the latest version and had the same issue. But I also see that v7.34.0 still uses the same image as 7.28.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants