Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Can you run x86/64 Docker images on Apple Silicon Macs?

"Not all images are available for ARM64 architecture. You can add --platform linux/amd64 to run an Intel image under emulation. In particular, the mysql image is not available for ARM64. You can work around this issue by using a mariadb image."

Quote Link:

Seems so, but with caveats ( see link ).
 
  • Like
Reactions: wyrdness
This is great news. They are really nice.

297120002-front-pdp.jpg

Who's that? No idea what it has to do with this article..
 
All explanations starting with virtual machines are completely wrong and steer people in the wrong direction.

the architecture of containers should nothing be of interest or importance for the common computer users.

and I don't understand why it is covered by macrumors.

‘Containerisation’ and ‘virtualisation’ are technically different, but at a high non-technical level, they both exist in the same area and are trying to achieve roughly similar things. Isolation, mainly.

VMs have their own kernel and are isolated from the host, whereas Docker/LXC/etc containers share the host OS kernel.

The lifecycle of a Docker container usually starts with an executable entry point and terminates at the exit code of said executable, whereas the lifecycle of a virtualised VM encapsulates a whole OS and only terminates when the virtualised OS is turned off.
 
Had Docker on my MBP for a few hours recently, looking at Kinsta's WordPress dev environment.
Just to start, Docker used an insane amount of RAM – is that possibly different on M1?
 
The desktop app still uses Rosetta however. Will say it works really well, can run quite a few things including some x86 images. My use is mostly for development however.
 
Nonsense comment

Not really. Intel MacBook Pros get extremely hot 🥵 running demanding virtualization environments such as Docker.


Had Docker on my MBP for a few hours recently, looking at Kinsta's WordPress dev environment.
Just to start, Docker used an insane amount of RAM – is that possibly different on M1?

Not likely. Docker is indeed a memory hog 🐷. 32 GB of RAM is a recommended minimum for a system running Docker unless you are working with very small containers. Unfortunately with M1 we are currently stuck with 8 or 16 GB.
 
Last edited:
  • Disagree
Reactions: sdz and bklement
Not really. Intel MacBook Pros get extremely hot 🥵 running demanding virtualization environments such as Docker.




Not likely. Docker is indeed a memory hog 🐷. 32 GB of RAM is a recommended minimum for a system running Docker unless you are working with very small containers. Unfortunately with M1 we are currently stuck with 8 or 16 GB.
You configure how much ram to use. If you allocate a ton it will use it. Normally not needed, it's the whole point of docker vs VM.
 
‘Containerisation’ and ‘virtualisation’ are technically different, but at a high non-technical level, they both exist in the same area and are trying to achieve roughly similar things. Isolation, mainly.

Agree. As for the original question about “uses for non-developers”, it’s definitely more for techies, but you could absolutely use Docker as a (free) way of running Linux on your Mac, although buying Parallels would have a much shallower learning curve, especially if you wanted to run a Linux desktop. But if you need several Linux VMs at the same time, containers can be more resource efficient (and quicker to install) - and there are a lot of pre-packaged apps available as docker containers.

If you use Linux in the cloud (or rent a “virtual server” from an ISP) you’re quite likely getting a container...

Yeah, “virtualisation” has come to mean a specific type of hardware-level virtual machine, distinct from containers, emulation, code translation... but that’s really just proof that nobody is in charge of jargon and it doesn’t have to make sense. The result in every case is still a “virtual machine”... an environment that appears to be a separate physical computer, but isn’t.
 
Docker? Is it still a thing? I thought podman is now the way to go? Anyway: what hypervisor do they use on mac m1? Hyperkit?
Stupid logo from a failing company. I agree.
Something tells me that Docker very much is a thing and that you're just trying to push some alternative nobody has heard of.
 
Not likely. Docker is indeed a memory hog 🐷. 32 GB of RAM is a recommended minimum for a system running Docker unless you are working with very small containers. Unfortunately with M1 we are currently stuck with 8 or 16 GB.
Well, I'd expect a container taking 32GiB RAM wouldn't take much less running "bare metal," unless Docker just has ridiculous overhead. I've been using it with 8.
 
Sorta, it's a VM for individual applications. I personally wouldn't have a need for it on Mac, but on my UnRaid Server I have a dozen Docker contrainers including apps like Plex, Sonarr, Radarr, Deluge, Unifi Controller, Homebridge.

I could see Homebridge being useful for the average person on a mac using homekit stuff.
Are they just sandboxed single container VM instances thus reducing security threats to typical Client/Server vending say Apache, PHP, Rails, Java, etc?
 
The desktop app still uses Rosetta however. Will say it works really well, can run quite a few things including some x86 images. My use is mostly for development however.
The resident portion is Apple Silicon. The UI wrapper, who cares. They can take their time on that.
 
This is good since I had issues running HomeBridge on my Mac because of Docker incompatibilities with M1.
 
Mostly true, filesystem and vpn agents still need to convert. UI, yeah it's just some kind of chrome app I believe.

That said, it works super well.
You've gone deeper than I have, most of my settings are still default. It is pretty slow to start up but that's not a big deal.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.