[GH-ISSUE #1411] Cannot connect to Docker daemon #742

Closed
opened 2026-03-01 21:46:00 +03:00 by kerem · 2 comments
Owner

Originally created by @lukasz-kalnik-gcx on GitHub (Oct 25, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1411

Bug report info

act version:            0.2.32
GOOS:                   darwin
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
Config files:
	/Users/lukaszkalnik/.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.19.1
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-compiler:            gc
		-ldflags:             -X main.version=0.2.32
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               amd64
		GOOS:                 darwin
		GOAMD64:              v1

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

MacOS 12.6
Docker Desktop 4.13.0

When trying to run act from the console, the following error message is printed:

ERRO[0000] failed to obtain container engine info: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[Pull Request/Cancel previous runs ] 🚀  Start image=catthehacker/ubuntu:act-latest
[Pull Request/Cancel previous runs ]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
[Pull Request/Run Unit Tests & Lint] 🚀  Start image=catthehacker/ubuntu:act-latest
[Pull Request/Run Unit Tests & Lint]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
Error: unable to determine if image already exists for image 'catthehacker/ubuntu:act-latest' (): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

However, when trying

docker run -d -p 80:80 docker/getting-started

the container starts without problems.

No response

Workflow content

Probably irrelevant

Relevant log output

No log

Additional information

No response

Originally created by @lukasz-kalnik-gcx on GitHub (Oct 25, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1411 ### Bug report info ```plain text act version: 0.2.32 GOOS: darwin GOARCH: amd64 NumCPU: 12 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: Config files: /Users/lukaszkalnik/.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.19.1 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -compiler: gc -ldflags: -X main.version=0.2.32 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: darwin GOAMD64: v1 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 MacOS 12.6 Docker Desktop 4.13.0 When trying to run `act` from the console, the following error message is printed: ``` ERRO[0000] failed to obtain container engine info: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [Pull Request/Cancel previous runs ] 🚀 Start image=catthehacker/ubuntu:act-latest [Pull Request/Cancel previous runs ] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false [Pull Request/Run Unit Tests & Lint] 🚀 Start image=catthehacker/ubuntu:act-latest [Pull Request/Run Unit Tests & Lint] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false Error: unable to determine if image already exists for image 'catthehacker/ubuntu:act-latest' (): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ``` However, when trying ``` docker run -d -p 80:80 docker/getting-started ``` the container starts without problems. ### Link to GitHub repository _No response_ ### Workflow content ```yml Probably irrelevant ``` ### Relevant log output ```sh No log ``` ### Additional information _No response_
kerem 2026-03-01 21:46:00 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@lukasz-kalnik-gcx commented on GitHub (Oct 25, 2022):

Seems to be caused by missing symlink.
Workaround: https://github.com/docker/for-mac/issues/6531#issuecomment-1288237259

<!-- gh-comment-id:1290535764 --> @lukasz-kalnik-gcx commented on GitHub (Oct 25, 2022): Seems to be caused by missing symlink. Workaround: https://github.com/docker/for-mac/issues/6531#issuecomment-1288237259
Author
Owner

@lukasz-kalnik-gcx commented on GitHub (Nov 2, 2022):

Closing, as the missing symlink has been restored in Docker Desktop for Mac 4.13.1: https://docs.docker.com/desktop/release-notes/#docker-desktop-4131

<!-- gh-comment-id:1299882428 --> @lukasz-kalnik-gcx commented on GitHub (Nov 2, 2022): Closing, as the missing symlink has been restored in Docker Desktop for Mac 4.13.1: https://docs.docker.com/desktop/release-notes/#docker-desktop-4131
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#742
No description provided.