You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using catthehacker/ubuntu:full-latest I get the following error: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json?all=1&filters=%7B%22name%22%3A%7B%22%5E%2Fdagger-engine-%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied
But I do not get it when running same command with catthehacker/ubuntu:act-latest
name: MAVEN DAGGERon:
push:
branches:
- '**'jobs:
build:
name: Maven Buildruns-on: ubuntu-lateststeps:
- name: LOG GITHUB CONTEXTenv:
GITHUB_CONTEXT: ${{ toJson(github) }}run: echo "$GITHUB_CONTEXT"
- name: Checkout the code on PRuses: actions/checkout@v4if: github.event_name == 'pull_request'with:
# Repository name with owner. For example, actions/checkout# Default: ${{ github.repository }}fetch-depth: 0set-safe-directory: trueref: ${{ github.event.pull_request.head.ref }}
- name: Checkout the code on push branchuses: actions/checkout@v2if: github.event_name == 'push'with:
fetch-depth: 0
- name: Setup Java 21uses: actions/[email protected]with:
java-version: 21distribution: 'temurin'
- name: Get Private IPif: env.PRIVATE_IP == ''run: | # Get the private IP address using `hostname` hostname -I PRIVATE_IP=$(hostname -I | awk '{print $1}') echo "Private IP: $PRIVATE_IP" # Save as GitHub output variable if needed echo "PRIVATE_IP=$PRIVATE_IP" >> $GITHUB_ENV
- name: Display Private IP from Environmentrun: echo "Private IP is $PRIVATE_IP"
- name: Call Dagger Function to build and publish to ghcr.iouses: dagger/dagger-for-github@v7with:
version: "latest"verb: callmodule: .dagger# args: build-and-push --registry=$DOCKER_REGISTRY --image-name=$DOCKER_IMAGE_NAME --username=$DOCKER_USERNAME --password=env:DOCKER_PASSWORD --build-context=github.com/daggerverse/dagger-ghcr-demoargs: maven-build --socket=/var/run/docker.sock --private-ip=$PRIVATE_IP# env:# DOCKER_REGISTRY: ghcr.io# DOCKER_IMAGE_NAME: ${{ github.repository }}# DOCKER_USERNAME: ${{ github.actor }}# # assumes the container registry password is in# # a repository secret named REGISTRY_PASSWORD# # set via the GitHub UI/CL# DOCKER_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
Relevant log output
`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json?all=1&filters=%7B%22name%22%3A%7B%22%5E%2Fdagger-engine-%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied`this happens when using `catthehacker/ubuntu:full-latest`... and does not happen when using `catthehacker/ubuntu:act-latest `
Additional information
please clone this to reproduce: git clone https://github.com/clembo590/issues.git --branch issue1_with_act
The text was updated successfully, but these errors were encountered:
Bug report info
Command used with act
this works
BUT THIS FAILS:
Describe issue
when using
catthehacker/ubuntu:full-latest
I get the following error:permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json?all=1&filters=%7B%22name%22%3A%7B%22%5E%2Fdagger-engine-%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied
But I do not get it when running same command with
catthehacker/ubuntu:act-latest
Link to GitHub repository
git clone https://github.com/clembo590/issues.git --branch issue1_with_act
Workflow content
Relevant log output
Additional information
please clone this to reproduce:
git clone https://github.com/clembo590/issues.git --branch issue1_with_act
The text was updated successfully, but these errors were encountered: