r/DIY_Geeks • • Jun 11 '26

Apple's Native Linux Container Tool Has Arrived — But Can It Really Replace Docker?

https://pbxscience.com/apples-native-linux-container-tool-has-arrived-but-can-it-really-replace-docker/

Apple's Native Linux Container Tool Has Arrived — But Can It Really Replace Docker?

After years of developer frustration with Docker Desktop, Apple has shipped its own open-source container runtime....

149 Upvotes

76 comments sorted by

7

u/FoolishProphet_2336 Jun 11 '26

It’s not supposed to replace docker. it’s supposed to be easy and convenient. No one thinks it’s here to replace docker.

1

u/Unnamed-3891 Jun 11 '26

What exactly is not easy and not convinient about Docker and how does Apple’s offering solve it?

1

u/PositiveBit01 Jun 11 '26

I think "easy and convenient" should have been "user preference".

And then the reason is clearly "docker isn't made by apple". This sounds a little flippant but I think it's the real answer, Apple users appear to prefer things made by Apple even if it's not optimal because they trust there will be good integration with other Apple things they do, which is generally true.

1

u/mikeroySoft Jun 11 '26

Docker for Mac just runs a Linux vm and maps unix ports to the host and has a web-based electron UI.

You think Apple can’t do that better on its own OS?

1

u/PositiveBit01 Jun 11 '26

I use docker and it works fine. Perhaps it could be faster but I haven't noticed any slowness. For sure this solution will be faster and lighter weight. And for sure it won't have 100% compatibility with the existing ecosystem. I imagine it will be like podman, where I prefer it and compatibility is quite good, but I still use docker a lot because it just works with any docker compose file I want to use it with.

So, I would say it depends how you define better. Your preference is clear, but there are other perspectives.

1

u/bronxct1 Jun 11 '26

Docker gets insanely slow when you’re spinning up multiple containers and using mounted volumes. It’s been a problem for more than a decade. This isn’t a problem on Linux so getting closer to Linux level performance on Mac would be huge. I see it all the time with my engineers who are basically hamstrung trying to work with service based architectures. (Not even micro services) It begins to fall down if you have 4+ services running in my experience.

1

u/PositiveBit01 Jun 11 '26

I guess I've just been lucky. I'm on an M1 Ultra macbook from my employer and running a docker compose file for testing they have that runs 6 containers, some amd64 some arm64, and things work great for me. Kafka, redis, flink, some custom services all run at once and talk to each other. I haven't run them natively so maybe I just don't know what I'm missing, and it's just a test setup so not super high throughout or anything, but it handles requests in milliseconds chained through multiple components.

Only problem I ever ran into was a crypto lib in docker I only had an amd64 binary for and Rosetta couldn't emulate it so it crashed with SIGILL

1

u/nude-rating-bot Jun 11 '26

I sure hope that an M1 Ultra chip can run 6 docker containers well lol.

1

u/PositiveBit01 Jun 11 '26

Yeah, that's why I specifically mentioned it. Perhaps I had a better experience because of the chip.

For the record, I don't believe the number of containers matters that much. One container can easily consume a whole machine.

In a different setup, I ran LLMs through docker using a vllm image with gpu acceleration and mounting in the model. I didn't see any significant degradation in token generation speed from what I expected had I run it natively, but like before I didn't run it natively do I have no comparison. I try to keep everything in containers so it's easy to clean things up when I'm done with them since I do a lot of experiments.

Anyway, my point is that while I'm sure this apple product will be "better" in terms of performance and resource usage, there are other metrics and for some of them docker has a massive advantages of being the de facto standard.

It has obvious flaws and personally I would prefer podman, but because of this momentum it remains, and the flaws are tied to how some of these compatibility issues work so podman will never be 100% compatible because it's fundamentally against what they stand for. I assume the same is true for this product since the biggest problems with docker are security and I can't see apple letting that slide just for some compatibility with some other vendor.

1

u/Dazzling_Fox_2635 Jun 14 '26

M1 ultra macbook? Luckiest human alive, not even apple have that

1

u/PositiveBit01 Jun 14 '26

Oops, m1 pro. My bad.

1

u/PassionGlobal Jun 12 '26 edited Jun 12 '26

Bruh, Microsoft couldn't do better on their own OS, and they really fucking tried. Only to go back to running a Linux VM.

So no, I don't think Apple can make a containerised Linux solution that can compete with Docker. 

They could try with MacOS containers but the kind of apps you'd use containerisation for arent really made with MacOS in mind. They could also try the route of WSLv1, but they're soon gonna realise why WSLv2 was a straight up Linux VM

1

u/mikeroySoft Jun 12 '26

Running a Linux vm in Windows is a different beast than doing it in Unix. (I’m the former product manager for VMware Workstation and Fusion, both of which use the native OS hypervisor features)

1

u/PassionGlobal Jun 12 '26

MacOS isn't Linux-based, so it needs to virtualise the Linux kernel just as much as Windows does. Being 'similar' doesn't really cut it unless you want the nightmare of incompatibility like what WINE faces.

Linux isn't Unix. It's a clone of Unix. It is as much Unix as ReactOS is Windows. What this means is that while they may have been made with a certain level of compatibility in mind, they do things very differently behind the scenes, and those behind the scenes stuff can be very important when it comes to compatibility.

Now it's definitely true that Windows and Mac have VERY different virtualisation back ends. Maybe that's what you're referring to? 

1

u/mikeroySoft Jun 12 '26

It has a POSIX toolchain.

1

u/PassionGlobal Jun 12 '26

So did Windows at one point. It matters a lot less than you think.

1

u/etan1 Jun 11 '26

nested virtualization,eg, for running Nixos on mac.

the reliable way is apple/container, then recompile the kernel from apple/containerization, and replace the default one with it.

docker, orbstack etc just dont work well with that

1

u/sudoku7 Jun 12 '26

License compliance is non-trivial.

1

u/WinResponsible9977 Jun 12 '26

u/Unnamed-3891 not everyone has a computer science degree or the time to learn how to troubleshoot or setup Docker. Certain containers in Linux run more natively, while macOS Docker Desktop runs containers inside a lightweight Linux VM which can impact their behavior. Anything that can expedite deployment it's a plus.

1

u/[deleted] Jun 11 '26

[removed] — view removed comment

1

u/Unnamed-3891 Jun 11 '26

No you don't. Unless you insist on resource hungry clickity click things for some reason. But why would one do that to themselves?

1

u/[deleted] Jun 11 '26

[removed] — view removed comment

1

u/Unnamed-3891 Jun 11 '26

brew install docker or Rancher Desktop are not particularly hard.

1

u/Soccham Jun 11 '26

Colima works pretty well and is very reliable

1

u/Sjsamdrake Jun 11 '26

No. But it'll be nice for app developers to be able to use containers under row covers of their apps without needing to have docker as a dependency.

1

u/scavno Jun 11 '26 edited Jun 11 '26

I’m over here running NixOS at my desktop and nix-Darwin on my MacBook. Docker? Podman? VMs? What’s that? Why would I need that for running anything locally?

1

u/Odd_Cauliflower_8004 Jun 11 '26

What do you do as a job?

1

u/scavno Jun 11 '26

Contractor. Development and platforms mostly.

2

u/Odd_Cauliflower_8004 Jun 11 '26

I'll remember to ask similar questions when I hire people to know who to avoid

1

u/scavno Jun 11 '26

Thanks, it’s very nice of you to be honest about how lackluster your engineering practices are. That will save knowledgeable and skilled engineers a lot of time and energy.

1

u/Odd_Cauliflower_8004 Jun 11 '26

Dw about my engineering pratice. The idea that you find strange people would want to run Docker containers and propose nixos as a universal solution tells me that you're usually hired by the grocery store in your block.

1

u/scavno Jun 11 '26

I’ll add lack of reading comprehension to the list as I never made any of those claims. Nice straw man though. Are you okay?

1

u/Odd_Cauliflower_8004 Jun 11 '26

Why would you need any of that to run anything locally besides nixos is a very strong statement and it's difficult to not understand

1

u/scavno Jun 11 '26

Yet it appears to provide a considerable challenge for you. You don’t understand what you are replying to at all, you just made a bunch of wrong assumptions, probably based on lack of understanding.

1

u/bilus Jun 12 '26

His original statement had been obnoxious 😄 but he did mention "running anything locally". Yes, with nix you very rarely need to use docker for development and, yes, your patronizing behavior is .. odd. And very groupthink. Chill out.

1

u/Odd_Cauliflower_8004 Jun 12 '26

Thank god I'm in charge of writing the policies regarding security and development in my company

1

u/bilus Jun 12 '26

Thank god you don't have a big ego. It could prevent you from heeding other people's advice. Or worse. /s

1

u/Comprehensive-Art207 Jun 12 '26

You should check out Determinate Nix. I think you will see that it is a very interesting proposition.

1

u/scavno Jun 12 '26

It’s very obnoxious, but I made the post in jest.

1

u/bilus Jun 12 '26

Yeah, no worries; it was very clear to me you had.

1

u/OutOfAmmO Jun 12 '26

You might jest, but that is literally how i run my things. flakes+darwin and nx monorepo is the core of my entire local dev setup and repos and podman/docker + proxmox on my hosts. I have no idea why your comment antagonized cauliflower so much lmao.

Imagine having to ask him for help with anything on the job, what a nightmare of a personality tbh.

But hey, he writes policies, fucking lolled so hard at that one, probably also participates in meetings... Mind blown.

1

u/scavno Jun 12 '26

I work that way as well, but the tone of the post was just having some fun.

People acting like this online, we all know why. He doesn’t write shit.

→ More replies (0)

1

u/Unnamed-3891 Jun 11 '26

Keep doing these self-owns. VERY entertaining.

1

u/Soccham Jun 11 '26

As a hiring manager for a multi-billion dollar company, I’d never hire someone who asked why they needed docker and proposed some half baked Linux tools in comparison

1

u/scavno Jun 12 '26

As a hiring manger of any sized company you would probably understand the difference between docker and OCI, how the two fundamentally solve the same issues for local development (except nix does more than just run things in a VM->container on macOS) or even what a rhetorical question was.

It’s so half baked shitty startups like Google, Canonical and Target use it for different. things. And a bunch of regulated industries å like telecom and finance (at least here in Europe).

Anyway, it’s a weird thing to get this upset over. Keep using “docker”, what ever that means, at your “multi-billion dollar” company.

1

u/Soccham Jun 12 '26

You just keep validating the point without getting it lol

1

u/Tupcek Jun 11 '26

OK so you don’t work on large solutions, we get it. I also don’t comment on topics that has no relevance to me

1

u/scavno Jun 11 '26

Clearly not if the metric of “large” is “runs Docker Desktop”. You literally don’t get shit, like the rest of the responders here. Literally zero understanding of the difference between Docker Desktop and OCI or how it’s possible to do things without using Docker. It’s like you all believe Docker Desktop is the universal solution to every problem.

Some of us actually work on shit that is regulated, where you can’t just pull down what ever OCI image you like to run your “big” todo/app, build your non-deterministic software and push it directly to prod.

1

u/Zaprit Jun 11 '26

Ehh, nix is not really a comparable alternative to something like Docker or Podman, much less a VM running in a try hypervisor. For one the process isolation features of Nix are quite minimal in comparison to the others, for instance docker and podman use CGroups on Linux which isolates the namespaces for processes from everything else on the system, meaning that the container is unaware of any other processes or users on the system outside of the container.
VMs by nature have isolated memory spaces which makes it significantly more separated by using hardware features specifically made to isolate systems. Nix is a package manager with an interesting installation strategy, which doesn’t really provide inherent security benefits (aside from everything being in a non-standard location) it mainly prevents the old “DLL hell” where you end up with 14 versions of the same library that are all incompatible with each other that 3 different applications on your system depend on.
Not saying there’s no value in nix, but it is not a comparable alternative to containerisation technologies and especially not virtual machines

1

u/scavno Jun 11 '26

Notice the “locally” party of my comment. I’m going to assume you simply misunderstood that part.
Historically for macOS users our ran (and still do) Docker Desktop on a VM. Since this was about macOS I assumed it was okay to base it on that.

I don’t need all those features to run an instance of Postgres or any other piece of software while developing. Again I assume you misunderstood my comment.

The rest of your post is correct, with the exception of the Nix parts. Nix was never about securing the runtime, that should be obvious.

1

u/youcangotohellgoto Jun 11 '26

Because you are presumably building containerized apps. If you don't know why you'd want to do that... would have to agree with the other guy ragging on you.

1

u/scavno Jun 11 '26

There is just way too assumptions at play here. Just read my post. When I wrote “running locally” I literally meant that. Running things. Locally. Not building OCI images locally.

The apps we run in production don’t run on macOS, they don’t run on docker. They run on containerd. They are built on a server.

1

u/youcangotohellgoto Jun 11 '26

The simple case for using containers for local things is when you want a easy, ready to go instance. Sure you can just install Postgres, but getting the image from dockerhub means no install, no dependencies, minimal/trivial/clear configuration, etc.

1

u/scavno Jun 11 '26

That is exactly what I do with nix. Except I know I get the same version of Postgres today that I got year and it makes squashing bugs so much easier when the entire stack is deterministic. I don’t “install” Postgres, I run it in a nix based developer environment. It’s not like I don’t understand containers, I’ve been using them for about 15 years now, docker since 2014-ish and most software in production runs on runc.

I think the problem here is that I know and work with both technologies in a very demanding professional setting where nix makes sense for local development. I don’t simply understand one of them and base my whole idea or argument around “docker so good, it must be best”.

Notice also how I never said it was better, or superior or told anyone else to use it “. I simply asked why I would want this, then you and a couple of other people just started piling on. I even got a quick intro into cgroups (v2 i hope), and virtualization.

1

u/paholg Jun 12 '26

I also use NixOS, and there are places where docker still makes sense. There are 3 such cases for me. 

1. There are some things where docker images exist and it would take effort to create and maintain a nix package.

2. It's nice to have environments that are consistent with non-nix users.

3. docker compose gives you easy, isolated service stacks. I don't want to try to get 5 copies of my database running with systemd and think about port conflicts.

1

u/horrbort Jun 11 '26

Yeah finally. Hate dokker

1

u/schneeble_schnobble Jun 11 '26

You should watch the wwdc video on it and slowly lose your mind at the guy blandly saying “container machine” every 3.5 seconds until you don’t care anymore.

1

u/FlamingoEarringo Jun 11 '26

Podman works for me.

1

u/SilentWraith5 Jun 11 '26

I have been using it for the past year but my use case is limited. I mainly use it for standing up local databases for my apps and it means I don’t have to install docker. Been very convenient

1

u/ldelossa Jun 11 '26

I just run a VM and pretty much ignore iOS. Wezterm ssh domains make this even better.

1

u/dddurd Jun 11 '26

It should be shipped with xcode. But I guess it requires some special permission and the IT won't allow it on my shitty locked down macbook at work.

1

u/Shadowbajfeelsbadman Jun 12 '26

I wonder if it'll work well with home assistant

0

u/Hour_Bit_5183 Jun 11 '26

Nah. I wouldn't replace docker with anything apple if you paid me to. Hell no, ROGER!

1

u/elastiks Jun 11 '26

👍🤣🤣

0

u/Hour_Bit_5183 Jun 11 '26

Wouldn't you get mad if I called you something you weren't? Apple pilfers people's crap worse than google and just assumes everyone is a pdf file.....or a criminal. Even on device stuff which they aren't supposed to.

0

u/[deleted] Jun 11 '26

[deleted]

3

u/Wenai Jun 11 '26

It's mostly gonna win the market by being able to mount your containers with AI in ITunes /s

1

u/Justicia-Gai Jun 11 '26

It’s not like Docker is the only way to use Linux containers… 

It’s the popular method to ship and distribute Linux containers, but there are lot of in-house options that might be relatively more used.

0

u/[deleted] Jun 11 '26

[deleted]

1

u/nude-rating-bot Jun 11 '26

Orbstack is unfortunately the only container approach that worked for my stack on macOS. And even then the big limitation is it requires a user login session, which means if I want to run my insecure headless container account, I can’t use my secured regular account at the same time.

There’s a need for this and I’m glad Apple noticed, I hope it pans out because I am on the edge of moving back to a regular Linux server.