Install Docker on Mac runners
See original GitHub issueI have to add this code for Mac runners when I need Docker to be available:
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask docker
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app --args --unattended --accept-license
echo "We are waiting for Docker to be up and running. It can take over 2 minutes..."
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
It takes a lot of time. Would you be able to install it by default? Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Install Docker Desktop on Mac
Install interactively · Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applications folder. · Double-click Docker.app...
Read more >How to Install Docker on MacOS?
How to Install Docker on a MacOS ... Step 1: Open the installer by double-clicking Docker.dmg, then drag the Docker icon to the...
Read more >Docker for Mac: Homebrew Step-by-Step Tutorial
In this post, you'll learn how to install and use Docker for Mac with Homebrew. You'll also learn customization options and the basic...
Read more >How to Install Docker on MacOS?
Click the “Download for Mac” button to download the latest version of Docker Desktop for Mac. · Once the download is complete, double-click...
Read more >Docker For Mac: A Beginner's Guide To Installation
Install Docker on Mac · Open System Preferences and select Security & Privacy. · Choose the Privacy tab, and then Full Disk Access...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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?
Here is the closed issue for the addition of colima: https://github.com/actions/runner-images/issues/6216.
You can also check the environment description for
macos-latest
runners (which is currently macOS 12).