how to run docker on apple silicon (m1)
Asked Answered
O

4

16

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:
Opec answered 8/4, 2021 at 18:43 Comment(3)
This will help : docs.docker.com/docker-for-mac/apple-m1Siegler
i'v seen this but I doesn't see here anything helpfulSettle
So watch this video as it installing docker on M1 Chip youtube.com/watch?v=wsg7wrTbBRkSiegler
H
13

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

Hortensiahorter answered 12/4, 2021 at 6:39 Comment(3)
softwareupdate --install-rosetta and brew install --cask docker worked for me.Dehorn
@LauriElias That installs x86 docker and runs it on Rosetta, which does work but is probably not what you want. Instead, download Docker from the website manually.Dahl
OK, so, it is not possible to install the ARM Docker version (Apple Silicon) with Homebrew (as of the time of this writing this post). I will post the instructions for doing it without brew below.Repartee
B
2

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

Bridgers answered 14/2, 2023 at 11:11 Comment(0)
K
0

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

Kaveri answered 8/8 at 13:15 Comment(0)
R
-1

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
Repartee answered 8/6, 2023 at 20:13 Comment(1)
This does nothing to answer the question, which pertains to an "Invalid CPU" errorUnwary

© 2022 - 2024 — McMap. All rights reserved.