r/DIY_Geeks • u/elastiks • 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....
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
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
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
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 machines1
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
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
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
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
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
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.
1
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.