[GH-ISSUE #2758] Cannot connect to the Docker daemon #1251

Closed
opened 2026-03-01 21:49:56 +03:00 by kerem · 1 comment
Owner

Originally created by @mperham on GitHub (May 15, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2758

Bug report info

% act --bug-report
act version:            0.2.77
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock(broken)
Config files:           
	/Users/mperham/Library/Application Support/act/actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.24.2
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.77
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               arm64
		GOOS:                 darwin
		GOARM64:              v8.0

Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Command used with act

act

Describe issue

I'm using OrbStack 1.10.3 on macOS 15.4. As you can see below, act is unable to download its image but I can pull it manually just fine. Does act work with OrbStack?

No response

Workflow content

name: Go

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-go@v5

    - name: Install Redis
      run: sudo apt-get install redis-server

    - name: Test
      run: make prepare test

Relevant log output

% act -v
[...snip...]
[Go/build] [DEBUG] evaluating expression 'success()'
[Go/build] [DEBUG] expression 'success()' evaluated to 'true'
[Go/build] ⭐ Run Set up job
[Go/build] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Parallel tasks (0) below minimum, setting to 1 
[Go/build]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Go/build] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[Go/build] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
[Go/build] using DockerAuthConfig authentication for docker pull
[Go/build] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[Go/build]   ❌  Failure - Set up job
[Go/build] 🏁  Job failed
Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

% docker pull catthehacker/ubuntu:act-latest
act-latest: Pulling from catthehacker/ubuntu
Digest: sha256:932a29dd9f17cceda5a85597b9c6d4705fd8da13e488e800be81feb98e505594
Status: Image is up to date for catthehacker/ubuntu:act-latest
docker.io/catthehacker/ubuntu:act-latest

% ls -l /var/run/docker.sock
lrwxr-xr-x  1 root  daemon  38 Apr 24 08:14 /var/run/docker.sock -> /Users/mperham/.docker/run/docker.sock

Additional information

No response

Originally created by @mperham on GitHub (May 15, 2025). Original GitHub issue: https://github.com/nektos/act/issues/2758 ### Bug report info ```plain text % act --bug-report act version: 0.2.77 GOOS: darwin GOARCH: arm64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock(broken) Config files: /Users/mperham/Library/Application Support/act/actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.24.2 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.77 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin GOARM64: v8.0 Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ``` ### Command used with act ```sh act ``` ### Describe issue I'm using OrbStack 1.10.3 on macOS 15.4. As you can see below, `act` is unable to download its image but I can pull it manually just fine. Does `act` work with OrbStack? ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Go on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 - name: Install Redis run: sudo apt-get install redis-server - name: Test run: make prepare test ``` ### Relevant log output ```sh % act -v [...snip...] [Go/build] [DEBUG] evaluating expression 'success()' [Go/build] [DEBUG] expression 'success()' evaluated to 'true' [Go/build] ⭐ Run Set up job [Go/build] 🚀 Start image=catthehacker/ubuntu:act-latest DEBU[0000] Parallel tasks (0) below minimum, setting to 1 [Go/build] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true [Go/build] [DEBUG] 🐳 docker pull catthehacker/ubuntu:act-latest [Go/build] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' () [Go/build] using DockerAuthConfig authentication for docker pull [Go/build] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [Go/build] ❌ Failure - Set up job [Go/build] 🏁 Job failed Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? % docker pull catthehacker/ubuntu:act-latest act-latest: Pulling from catthehacker/ubuntu Digest: sha256:932a29dd9f17cceda5a85597b9c6d4705fd8da13e488e800be81feb98e505594 Status: Image is up to date for catthehacker/ubuntu:act-latest docker.io/catthehacker/ubuntu:act-latest % ls -l /var/run/docker.sock lrwxr-xr-x 1 root daemon 38 Apr 24 08:14 /var/run/docker.sock -> /Users/mperham/.docker/run/docker.sock ``` ### Additional information _No response_
kerem 2026-03-01 21:49:56 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@mperham commented on GitHub (May 15, 2025):

I found this documentation:

https://nektosact.com/missing_functionality/docker_context.html

and was able to get this working with:

export DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}')

as documented. Thank you! You might want to add "OrbStack" to the content on this page so search engines pick it up when we search for docs on act+orb.

<!-- gh-comment-id:2884962953 --> @mperham commented on GitHub (May 15, 2025): I found this documentation: https://nektosact.com/missing_functionality/docker_context.html and was able to get this working with: ``` export DOCKER_HOST=$(docker context inspect --format '{{.Endpoints.docker.Host}}') ``` as documented. Thank you! You might want to add "OrbStack" to the content on this page so search engines pick it up when we search for docs on act+orb.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1251
No description provided.