-
Notifications
You must be signed in to change notification settings - Fork 21
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
Running docker actions locally with ACT cannot connect to daemon #250
Comments
Looking at
It seems current context is not what you set here:
Can you add this step right before "Set up Docker Buildx" one to check this: - run: |
docker context ls
docker context inspect |
Same issue here. When i spit out the context and inspect as you suggested @crazy-max , i am still seeing the default socket and context being used when running:
|
@archae0pteryx you could try
I'm still trying to figure it out. try having a look over nektos/act#2239 (comment) maybe it could help. |
Thanks for the suggestion @stefan-marc, unsetting the value for container-daemon-socket has helped. I've also confirmed that this is the case on macOS 15.0.1 Thanks again 🎉 |
Closing, as this seems to be resolved. However, for your information, we don't support or test outside of GitHub-hosted runner infrastructure, though we can assist on a best-effort basis. |
Summary
I run act locally to develop and debug GitHub Actions workflows that build and deploy images.
This has worked well in the past but I’m now encountering an issue with docker actions unable to connect to the docker daemon.
I first encountered this issue with the docker/setup-qemu-action but based on this comment I thought I could work around it by only using the docker/setup-buildx-action and setting the docker endpoint to
unix://$HOME/.colima/default/docker.sock
(derived fromdocker context ls
) but that didn’t affect a change.Setup
Apple M1 Mac OS 14.2.1
colima - https://github.com/abiosoft/colima
act - https://github.com/nektos/act
Steps to reproduce
docker context use colima
export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock”
colima version info
act version info
build-image-colima workflow
The act command (verbose output)
act pull_request -W .github/workflows/build-images-colima.yml --secret-file /tmp/sec-file --var IMAGES='["node"]' --container-architecture linux/amd64 -v
act output
It looks like the
endpoint
input for the docker/setup-buildx-action may not be respected.The
docker info
group returnsand the
Creating a new builder instance
group fails withThanks for any help you can give me with this.
The text was updated successfully, but these errors were encountered: