by mberning · 4y ago · 0 comments
They are not all the same when you get down to it, though. The "different opinions" about how to plumb traffic back out from a container (DNAT/SNAT via a bridge, macvlan, whether using a CNI directly is supported), whether a service/daemon should be the primary entrypoint (docker, containerd) or whether it's optional (podman), whether they speak to runc at all (containerd/docker yes, podman defaults to crun, kata is also an option, and others), what kind of storage overlays and plugins are allowed, etc are more than "opinions".
The devil is in the details. Colima is "basically a drop in replacement for docket desktop" under the assumption that you aren't doing anything very complex with Docker. In particular, complex networking is likely to fail/explode.
Does Colima work with Docker Compose?
I abandoned Docker on the Mac because of that, and haven't touched it since. That was early 2021; maybe it's faster now.
I believe improvements have been made, but a lot of people these days check out their code directly in the container rather than using bind mounts, leveraging the fact that a lot of editors/IDEs now will interface directly with the containers.
But... watch out for software compatibility: m1/m2 requires recompiling from source which is painless... when it works. I recently needed syslinux and had to move to x86 cloud instance. Fortunately, docker made that easy.
I mean I want to use containers but on top of setting up the host, they require composing containers (even when ready made for customizations), networking, logging and fight for more memory when using memory hungry stuff in conjunction (like elastic or other db).
If my main job was devops, I suppose I would make myself more valuable by doing everything in containers but when I deploy an app it is because I have to on top of many other duties so being able to not only setup but troubleshoot and fix outages quickly is most important (and I hope a full time devops person, if I ever get one) will help me migrate all that some day so it looks nice and neat.
- spyware (transmits private data off your machine without consent when it crashes, which it does a lot)
- nonfree software
- has a git repo so you don't notice it's nonfree software
What can you use to do that?
I think there’s stuff that uses it under the hood like colima and rancher.
Basically the issue is that quite a lot of software is amd64 only and they haven’t cross complied binary layers for arm64.
So for local development you have to emulate.
It’s a shame there’s not a way to leverage rosetta2 really.
You can either run an alternative architecture or an alternative OS. Running MacOS software for x86 is running through an interpreter.
If you want to run x86 Linux software, then MacOS on Arm is just one too many steps away.
Also, are you using AMD or ARM images for those?
You can run a constant VM with 2/4/8/128gb of ram or whatever you need. I use one at work for years and I think mine is 16gb of ram and it’s way over provisioned most of the time. Unlike how you might expect, treat the cloud vm like a work laptop not a production service. Let people write scripts that stay there, let people keep it on 24/7, available on demand, etc. It’s a cloud laptop not a production VM.
Even giving people a headless Intel NUC to connect their laptops too would be way, way cheaper (assuming you're just doing development).
Colima is a little but lower level but works very well. Rancher Desktop had some struggles a while back but most of the developers who are new to the company seem to be using it for local kubernetes.
That's the key part: Your positive experience is with PCs running linux I guess.
Imho Mac hardware, especially with M1/M2 is the best value for money one can buy right now. Performance is outstanding, coupled with all day battery life. Build is also super premium including the keyboard now. I tried Lenovo X1, Dell XPS 13 which are supposedly the best PC laptops and found them way inferior... and more expensive!
Regarding macOS, I completely understand that some people like it, some don't. But we all want good tools on that hardware :)
So Macs are what corporate provides to developers.
There are also some pretty good apps for macOS that just aren’t available on Linux.
And then some of us really enjoy the desktop experience of macOS.
When I need Linux tools they are easy to access via Lima. (One could also use Parallels or VirtualBox, but IMHO Lima is far more ergonomic.)