Bogudał.Mikołaj
Bogudał.Mikołaj

Reputation: 543

how to run docker on apple silicon (m1)

I'v installed docker by homebrew on Mac with m1 cpu. But it doesn't run. It tells me that I need to use intel cpu. But on Docker site I see that docker should run. How to fix that?

Incompatible CPU detected

We are sorry, but your hardware is incompatible with Docker Desktop.

This version of Docker Desktop requires an Intel processor.

To learn more about this issue see:

Upvotes: 16

Views: 47804

Answers (4)

Frankw
Frankw

Reputation: 36

Update August 8, 2024 Docker has provided a better solution for Mac ARM

Running Mac Powerbook M1 - Sonoma 14.5 Just install docker like before: brew install --cask docker

download file with mac.aarch64.zip from releases https://github.com/rancher-sandbox/rancher-desktop/releases

install and run Rancher - then test

docker ps
docker run hello-world

Upvotes: 1

George Smith
George Smith

Reputation: 584

Here are the instructions to install Docker Desktop on Apple Silicon (ARM 64 processor, like Mac Studio, M1 Max). The demo will be part of Getting Started with Concourse CI, a course that will be released on Pluralsight in the next 3 to 5 weeks. See module 3 and find the clip for installing Concourse - the Docker installation will be part of it. Anyhow, here are the commands that you can put in a script, make it executable and run it. Optionally, before you run it, uncomment the commands that move the .dmg file to the trash. I've also included the the "uninstall" command.

wget https://desktop.docker.com/mac/main/arm64/Docker.dmg
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
sudo hdiutil detach /Volumes/Docker

### Move Docker.dmg to the recycle bin
# trash Docker.dmg
### Empty the trash
# trash -e 

### Uninstall Docker
# /Applications/Docker.app/Contents/MacOS/uninstall
# trash /Applications/Docker.app

Upvotes: -1

you can simply download the docker desktop for the Mac with apple silicon and replace the old one while installing it

Upvotes: 2

Ravi Kumar Gupta
Ravi Kumar Gupta

Reputation: 1798

Docker Desktop RC3 is available at https://docs.docker.com/docker-for-mac/apple-m1/

See the download link at the top. This is a link to DMG file. Install it and you're good to go.

I am using it since 2 months.

Update, Nov 8, 2021

Updating it late, but now Docker Desktop for M1 is available (earlier it was preview version). Docker Desktop for M1 is now fully supported and can be downloaded at - https://www.docker.com/products/docker-desktop

Upvotes: 15

Related Questions