How Does Docker Work on macOS and What Are Apple’s New Containers About?

0
13
Asked By TechieTurtle92 On

I've always thought Docker containers rely on Linux kernel features like namespaces and cgroups, which macOS lacks. So traditionally, Docker on macOS meant running Docker Desktop with a Linux VM in the background. However, Apple has recently introduced its own container tools that likely integrate better with macOS's filesystem, networking, security, and performance. I'm trying to understand some specifics: 1. What exactly are Apple's containers? Are they like lightweight VMs or more akin to sandboxing/jails compared to Linux containers? 2. When I use Docker on macOS now, is it still Linux containers running in a Linux VM, or has Apple made any changes with their new container system? 3. Given that the core idea behind containers is portability—having the same setup and behavior across systems—if Apple's containers are specific to macOS, what issues do they aim to resolve? Are they focused on local development isolation and security, rather than cross-platform portability? Essentially, I'm trying to figure out how developers should view Docker containers versus Apple's containers on macOS going forward and what each is intended to do.

1 Answer

Answered By DevDynamo66 On

Yes, Docker on macOS still primarily uses a Linux VM. Though they’ve added the Rosetta shim for AMD64-on-ARM compatibility, it remains fundamentally Docker running inside a Linux VM. I don't see it evolving away from that structure anytime soon.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.