-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Install Docker on Mac runners #1456
Comments
Closed as per actions/runner-images#2150 |
@armenzg I use your code to run Docker in Mac, it works most of the time. However, it sometimes fails with this error:
Any idea how I can prevent that error? |
FTR, since the addition of colima to macOS runners, I now just need the following: - name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker
colima start Or when using docker-compose: - name: Setup docker and docker-compose (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker docker-compose
# Link the Docker Compose v2 plugin so it's understood by the docker CLI
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
colima start You might need This usually takes between 1m30 and 2m, which is not perfect, but still much better than before. |
I had no idea that colima was now in mac runners by default. Could you link to that addition @joffrey-bion ? That will help DDEV so much. It's been doing so much work to do its colima setup. |
Here is the closed issue for the addition of colima: actions/runner-images#6216. You can also check the environment description for |
@joffrey-bion Any idea why it is removed on macos 13? It doesn't work anymore |
@Jasperav nope, I'm sorry I'm not part of GitHub, just a humble user 😅 But I would also like to know, because if that's a conscious decision then I'm going to have problems too! |
Colima has worked all the way through macOS 13 and 14, but has had very significant problems getting v0.6.* stabilized in the last couple of weeks. But further comment belongs in the colima issue queue. Please read the release notes for v0.6.*, as a new profile has to be created, you lose existing volumes, containers, and images. |
@rfay But the problem I am facing is that colima isn't available on macos-13 in the first place in Github Actions or is that related? I added a comment here: actions/runner-images#6216. |
Here's how to use Colima with macos-13 in GitHub Actions until it's added there. I have no idea why it wasn't there in the first place (and have no idea why macos-latest is macos-12): |
Hello, I'm using a However, I'm unable to access the services themselves as part of the CI workflow (my Github Workflow launches services via So I have this snippet in my Workflow:
and the output for which, during the Workflow run, is:
Now, I have an app which POSTs to the endpoints of these services. It wasn't working, so I decided to test via
but these fail with the error: I also tried using Is there some networking issue going on in here, maybe related to |
I have to add this code for Mac runners when I need Docker to be available:
It takes a lot of time. Would you be able to install it by default?
Thanks.
The text was updated successfully, but these errors were encountered: