Skip to content
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

GH Action Build MacOS Fails with Docker Error #23

Closed
wesleyboar opened this issue May 6, 2024 · 3 comments · Fixed by #58 or #59
Closed

GH Action Build MacOS Fails with Docker Error #23

wesleyboar opened this issue May 6, 2024 · 3 comments · Fixed by #58 or #59
Labels
bug Something isn't working

Comments

@wesleyboar
Copy link
Member

wesleyboar commented May 6, 2024

Overview

Running "TACC Docs Build" action with runs_on macos-latest fails with error:

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

The rabbit hole of research to a solution seems to never end, but might require a different action in uses.

Status

Fixed:

Workaround

If you need to use on macOS, then build on your macOS locally.

Important

Builds we host online are currently Ubuntu (build, commit), cuz our servers use Ubuntu.

References:

@wesleyboar wesleyboar added bug Something isn't working help wanted Extra attention is needed labels May 6, 2024
@wesleyboar
Copy link
Member Author

I followed the rabbit hole of References further.

The bug was fix for macOS 13, but the fix was removed for macOS 14.

See alternative, crazy-max/ghaction-setup-docker.

@wesleyboar
Copy link
Member Author

wesleyboar commented Jun 27, 2024

@wesleyboar wesleyboar removed the help wanted Extra attention is needed label Jun 27, 2024
@wesleyboar wesleyboar changed the title Action Build MacOS Fails with Docker Error GH Action Build MacOS Fails with Docker Error Jun 27, 2024
wesleyboar added a commit that referenced this issue Nov 19, 2024
> Key Changes:
> * Set up Docker Buildx: Added `install: true` to ensure Buildx is installed.
> * Specify Platforms: Added `platforms: linux/amd64,linux/arm64` to the `docker/build-push-action` step to build for both `amd64` and `arm64` architectures.
> — Microsoft CoPilot
wesleyboar added a commit that referenced this issue Nov 19, 2024
This removed code seems superfluous.
@wesleyboar
Copy link
Member Author

All of my investigation seems irrelevant. The fix was setting arm64 as a platform for the build int he workflow:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant