mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #5836] Cannot connect to the Docker daemon when calling docker run inside a local action #1264
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jameshounshell on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/5836
Bug report info
Command used with act
Describe issue
We use an action (composite type, not docker type) to run a little bit of shell then execute a
docker run ...command. It appears that the act-latest docker-in-docker is not available to code running inside an action. This is allowed in real Github actions.Interestingly (but maybe obviously/expectedly?)
docker runwithin the action works fine if I use the-P self-hosted=-self-hostedto run on the mac directly. Also I do setDOCKER_HOSTalready and even if I try to export it inside the action itself, the socket is not actually there.I know this is an edge case because you'd probably expect a docker type action with the container that has my dependencies. (for reference the actual image used is
registry.k8s.io/kustomize/kustomize:v5.4.2which I was too lazy to build a custom image for.)Here's the setup:
.github/workflows/_test_local.yaml--calls-->./.github/actions/my-action--runs-->docker run ....github/workflows/_test_local.yaml./.github/actions/my-action/action.yamlLink to GitHub repository
No response
Workflow content
Relevant log output