HACKER Q&A
📣 goingindi

Docker on Apple M1 Silicon


Hey with all the questions on Apple m1, I thought to ask how you’re installing docker (or alternatives!?) on silicon native (no Rosetta)

Brew, docker desktop, rancher, or how?

Interested in docker for laravel and Django on m1


  👤 tastysandwich Accepted Answer ✓
Just docker desktop https://www.docker.com/products/docker-desktop/

Works absolutely fine. The only issues I had early on were some images I was using were not yet built for ARM. So it would run x86 containers through QEMU I believe, which has a pretty big performance penalty.

Luckily those images now have ARM builds so I have no other issues.


👤 wfg
Lima (https://github.com/lima-vm/lima) is the best way I've found to handle Docker on M1. Docker Desktop is a hog.

Their FAQs are pretty good, too (https://github.com/lima-vm/lima#faqs--troubleshooting).


👤 pxska
I use Docker Desktop as well and when you don't have to run x64 containers through QEMU, the images work just fine. I have to run containers through QEMU at the moment and while it does indeed have a performance penalty, I honestly got used to it pretty quick. They are also dropping lots of experimental upgrades (some of which have worked pretty well in my case).

👤 lmarcos
I'm using Docker inside a Vagrant virtual machine in my new M1 mbp. Works great! (I use ubuntu arm vagrant boxes available at vagrantcloud, but you can also bake your own image using, for instance, packer).

Biggest advantage for me: I don't pollute my Macos.


👤 reducesuffering
Using Docker Desktop for Django (well, it runs the daemon, still mostly CLI it)

👤 speedgoose
I use Rancher Desktop which uses Lima.