News for hackers. Stuff that matters.
Re:More developers use Linux than Mac, according to 2022 Sta... by stusmall on Wednesday December 28, 2022 @02:03PM (#34164489)
The docker situation on MacOS is so painful. That's the number 1 factor keeping me off it. It's such a fundamental tool to development in this day and age and Docker Desktop doesn't cut it at all. I used to run into mysterious lock ups of the VM when running decently complex workloads. It would happen maybe 2 or 3 times a week and I would have to blow away all state and set everything back up. Recently I've seen issues where it can't even build some non-trivial images on machines using M-series processors. I've tried Rancher Desktop too but also ran into similar issues. Neither of them can make it past building a decent sized rust project while emulating x86. This doesn't even take in account the performance of these builds that do finish. I'd be happier with slow builds if they at least worked.

Aside from build and stability issues, I've also hit not-so-subtle bugs in MITM proxies they add for connections on some ports.

I get why building Docker on MacOS, especially with the x86 emulation twist, is such a difficult problem. I don't envy the engineers working on this. But I don't get a developer who knows they need Docker would pick a mac for their main machine.

Re:More developers use Linux than Mac, according to 2022 Sta... by jkmcf on Wednesday December 28, 2022 @02:19PM (#34164694)
Just one data point, but I can't say I've had any development problems with Docker on MacOS. It's frustratingly slow, but it has always worked. Perhaps you are doing stuff way more complicated than just running a few containers.
Re:More developers use Linux than Mac, according to 2022 Sta... by geerlingguy on Wednesday December 28, 2022 @02:23PM (#34164750)
For individual containers or smaller local deployments using internal Docker networking, it's usually stable and you can use hacks like NFS reverse mounts for faster shared files.

But I've run into issues emulating more complex environments where you need multiple exposed ports, more complex host-to-Docker networking, etc., which generally works on Linux because it's not stuck in a VM shim layer.

But most of the time, I don't have any issues, just sometimes slower environments on Mac if I don't tune folder mounts and run apps like Ruby/Node/PHP with hundreds or thousands of files.

Re:More developers use Linux than Mac, according to 2022 Sta... by tzs on Wednesday December 28, 2022 @03:48PM (#34165768)
You can use Wireguard to tunnel from the internal Docker networking to Mac's network, so that each Docker container can have a separate IP address that is visible to Mac processes.

Here's a description of my setup for that: https://news.ycombinator.com/item?id=33665178

Re:More developers use Linux than Mac, according to 2022 Sta... by stusmall on Wednesday December 28, 2022 @03:53PM (#34165813)
I think this touches on what might have been the heart of the issue of one of my projects. It made use of extremely, complex dynamic docker networking. Both inter-container and host networking. It was a beast
Re:More developers use Linux than Mac, according to 2022 Sta... by beebmam on Wednesday December 28, 2022 @02:44PM (#34165006)
The problem is that the Docker runtime doesn't actually run on MacOS. It runs on a Linux VM running alongside MacOS. This can make a few things complex enough that requires changes to applications which interface with docker, especially related to networking. It's the same with Docker on Windows (running Linux containers. Windows containers are a whole other issue)
Re:More developers use Linux than Mac, according to 2022 Sta... by jolux on Wednesday December 28, 2022 @02:54PM (#34165100)
> It's the same with Docker on Windows

And the same with Docker Desktop on Linux: https://docs.docker.com/desktop/install/linux-install/

Re:More developers use Linux than Mac, according to 2022 Sta... by pxc on Wednesday December 28, 2022 @03:09PM (#34165286)
This strikes me as such an obviously stupid, self-defeating design that I have to be missing something.

Why would the Docker developers do this? Did doing it locally not work well? Is all that just to 'spare' Linux developers from actually installing Docker on their machines?

Re:More developers use Linux than Mac, according to 2022 Sta... by yamtaddle on Wednesday December 28, 2022 @03:39PM (#34165639)
The trouble with Linux is that anything you don't vendor in will be a giant fucking headache when it comes to support. But then, so will anything you do vendor in, as soon as some shared lib your vendored-in dep relies on is at the wrong version, or when it encounters some oddball config/package combo, or whatever.

Here they appear to have chosen to vendor in the whole damn OS, which, given the realities of supporting Linux, doesn't seem totally insane to me. I'd expect it also lets you run it with reduced permissions (not everyone has root on their workstation) and to generally make cross-distro operation much more reliable and consistent.

Re:More developers use Linux than Mac, according to 2022 Sta... by sdf4j on Wednesday December 28, 2022 @03:37PM (#34165618)
Maybe you want to run a completely different kernel, or distro, from your prod environment.
Re:More developers use Linux than Mac, according to 2022 Sta... by zitterbewegung on Wednesday December 28, 2022 @02:15PM (#34164634)
Honestly Docket Desktop for macOS has honestly been one of the most frustrating applications I have ever used and it isn’t Apple’s fault. Maybe with the new virtualization layer the developers at docker can fix it. One of the other issues is that it starts to create and enormous docker raw file.
Re:More developers use Linux than Mac, according to 2022 Sta... by jonwinstanley on Wednesday December 28, 2022 @02:21PM (#34164725)
What are the issues you see? My team all use Docker with M1 Macs and all seems to work fine, if a little slow.
Re:More developers use Linux than Mac, according to 2022 Sta... by geethree on Wednesday December 28, 2022 @02:30PM (#34164841)
My experience: it’s fine when using docker to run applications; painfully slow for a containerized development environments that want to share the file system with the host.

Lots to do to combat this, like: not sharing the volume with the host (vscode dev containers recommends this)

Re:More developers use Linux than Mac, according to 2022 Sta... by spamizbad on Wednesday December 28, 2022 @02:33PM (#34164886)
It's always the shared volumes that kill you. Especially for I/O intensive stuff like npm and webpack builds.

With that said if you're doing mostly backend stuff in Go/Python/Ruby etc it's quite good. Most of my complaints are from full-stack development.

Re:More developers use Linux than Mac, according to 2022 Sta... by yolo3000 on Wednesday December 28, 2022 @02:38PM (#34164933)
Why do you use docker to build local stuff?
Re:More developers use Linux than Mac, according to 2022 Sta... by ytjohn on Wednesday December 28, 2022 @03:03PM (#34165210)
Our team has pipelines that builds, runs, and tests our code in containers. We like to approximate this locally with docker compose. This helps eliminate things like forgetting to update pyproject.toml. Additionally, since the pipeline uses an internal artifactory/harbor (no external Internet), the containers we use have environment variables using the internal resources.
Re:More developers use Linux than Mac, according to 2022 Sta... by spamizbad on Wednesday December 28, 2022 @03:47PM (#34165743)
Good question: we actually decided to just not do this for local "statics". But having everything containerized makes it easier to attach editor contexts, work in the same environment as your CI/CD system etc.

The other upside of being fully containerized - even for FE stuff - is that you side-step having to worry about having any sort of "local" dev environment configured beyond Docker/Podman/etc and some environment variables set. It makes onboarding new developers a breeze and eliminates "Weird, works locally on my machine!" types of issues.

Re:More developers use Linux than Mac, according to 2022 Sta... by treis on Wednesday December 28, 2022 @04:26PM (#34166198)
Ruby takes forever to start the application because it has to open all the files. 4-8 minutes IIRC before the first test would run in our Rails monolith on my M1 pro.
Re:More developers use Linux than Mac, according to 2022 Sta... by black3r on Wednesday December 28, 2022 @04:52PM (#34166497)
If you're on Mac, have you tried the VirtioFS shared volume implementation yet? It was under experimental features until recently and you need macOS 12.5 to enable them, but it's very noticeably faster for I/O intensive stuff (my webpack builds are still 2x slower than native, but I wouldn't call it utterly unusable anymore)...
Re:More developers use Linux than Mac, according to 2022 Sta... by programmarchy on Wednesday December 28, 2022 @02:51PM (#34165067)
Qemu segfaults when compiling
Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @03:14PM (#34165346)
Sounds like a Qemu problem?
Re:More developers use Linux than Mac, according to 2022 Sta... by stusmall on Wednesday December 28, 2022 @05:29PM (#34166898)
Docker Desktop uses QEMU when building an x86 container on an M-series mac.
Re:More developers use Linux than Mac, according to 2022 Sta... by nicoburns on Wednesday December 28, 2022 @02:59PM (#34165154)
> and it isn’t Apple’s fault

Eh, yes it is. Apple doesn't provide a containerisation API for their OS, which means Docker is forced to run non-natively!

Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @03:13PM (#34165340)
Eh, no it isn't. apple does have a public container API but the problem is you still can't run Linux binaries on macOS no matter how many containers you put them in.

Containers on macOS don't use OCI images or anything like that, but scoped and grouped access to system resources with a separate user land that 'looks' like a full OS has been available for over 5 years. Even without that, XNU has plenty of facilities for it, and even if it didn't you'd still be able to use Launchd environments (which are more akin to LXC).

Docker relies on specific implementation details of the Linux kernel. It always has. That is why you always need a Linux OS somewhere to run the containers.

Re:More developers use Linux than Mac, according to 2022 Sta... by eptcyka on Wednesday December 28, 2022 @03:20PM (#34165409)
There is an OCI implementation for Windows which allows for Windows native containers. So docker can run on non-linux systems just fine, it's just that nobody cares. People use docker to package Linux applications, not because of some inate dockerness.
Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @03:22PM (#34165435)
OCI images yes, but that doesn't make them the same. OCI can be used to store many things, and those non-Linux OCI images will not run on Linux. Does that mean that it is Linux at fault for not running arbitrary formats from OCI images? No. This applies everywhere; if you build for a specific target and package it up, not using that target when trying to run it is a PEBCAK.

Example: there are artefacts you can store as OCI images that contain Mach-O binaries, and Windows and Linux won't really run those. You can even still PPC code in those binaries, and link to Cocoa frameworks. This means that the OS and architecture you are targeting will not be Windows or Linux, and that is not their fault.

Re:More developers use Linux than Mac, according to 2022 Sta... by eptcyka on Wednesday December 28, 2022 @05:13PM (#34166727)
In just pointing out that people are saying they want "docker" to work fine on non-Linux platforms but really, they want to run Linux binaries on non-linux kernels.
Re:More developers use Linux than Mac, according to 2022 Sta... by nicoburns on Wednesday December 28, 2022 @07:28PM (#34167937)
> In just pointing out that people are saying they want "docker" to work fine on non-Linux platforms but really, they want to run Linux binaries on non-linux kernels.

Is that true? Plenty of people are using multi-arch images (x86 and aarch64) which are essentially the Docker image equivalent of a fat binary. I might be wrong, but I think what I want are preconfigured macOS binaries packaged up a convenient image format with a layered filesystem, networking support, etc. Ideally with an equivalent linux image such that I can later switch the OS specifier and get an image containing an equivalent linux binary to run on linux.

I am for example quite happy to run a macOS native version of Postgres. But that doesn't give me the easy disposable database for testing that a docker-compose setup gives me. If I could specify that I want the "postgres" docker image in my docker-compose file, and running that file on macOS ran a macOS version of postgres in a macOS-native container then I'd be very happy.

Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @09:40PM (#34168810)
I think it's more than just multi-arch, it's also multi-OS (i.e. if we take Windows and BSD into account too we'd get 8 image types required for just 4 operating systems and 2 architectures if kept 'simple').

Packaging (including fat binaries but also byte code self-unpackers) has tried to make this possible for decades but it just won't stick. Take Debian or RedHat packages for example, there have been tools and repositories for very long times that were meant to make a universal method of distributing pre-packaged (and natively also chrootable/jailable) software for a multitude of architectures and operating systems possible, but package authors just didn't really want to do the work for what is essentially not something they wanted themselves.

Building software for 1 or 2 major release versions within a single operating system is hard enough, tacking on extra systems is usually a step too far.

The closest we got (and it still exists) is autotools, but that's just build tooling. It does however make it possible to build software from a single source for many targets and check for all the required features ahead of time. But this is so close to developing the software itself that it's not really compatible with the influx of end-user-style developers that expect pre-packaged 'commercial grade' software, which is essentially what Docker and OCI and Containers are.

The only 'new' thing so far has been cgroupsv2, the v1 version and everything else (distribution, sandboxing, capabilities, separate user land etc) has been done for over three decades. But again, using it means knowing how to use chroot, cap, tun and jail for example, and not everyone wants to learn that much. So we get things like docker, which under the hood does exactly that, plus some union filesystem magic to make it cheaper/faster for registries to store data; essentially a re-implementation of dynamic linking and shared libraries, but for files.

So now we have created an interface (docker) that is easy to adopt, easy to promote and easy to use, but it's hard-wired into Linux (the kernel) and only much later (post-OCI) got some hacked up windows version that is completely different and doesn't work anywhere else (because, well duh, not-windows isn't going to run windows apps). Aside from the fact that it's an OCI artefact, windows containers have very little to do with docker containers as we know them.

Most of this stuff also didn't really come from a need to get containers on windows (or macOS) but from the need to get more 'developer light edition' into the workforce, which can be trained and onboarded faster. If you can get people to ignore the foundation they stand on, they can be put to work in building upwards much sooner. This does of course come to bite everyone in the ass at some point, because if you're standing on top some 'magic' infrastructure and something breaks, it's going to be really hard to fix it. Right now we're all trying to make it redundant enough so we can ignore the breakage, but I doubt this is a winnable race.

Docker is a convenience, not a technical solution to a technical problem.

Re:More developers use Linux than Mac, according to 2022 Sta... by nicoburns on Wednesday December 28, 2022 @07:29PM (#34167945)
> Example: there are artefacts you can store as OCI images that contain Mach-O binaries, and Windows and Linux won't really run those.

Will macOS run them? That seems to be the missing functionality.

Re:More developers use Linux than Mac, according to 2022 Sta... by foxandmouse on Wednesday December 28, 2022 @02:40PM (#34164954)
Funny enough, I switched back to developing on Vagrant because docker wold make my i9 macbook sound like a jet engine.. And if you need docker, running it in vagrant is so much more performant.
Re:More developers use Linux than Mac, according to 2022 Sta... by jakear on Wednesday December 28, 2022 @02:13PM (#34164618)
Have you had much luck with Podman? I used to do QA for tooling to integrate VSCode with Docker and also couldn't stand the MacOS experience. But from what I understand podman works without the daemon and is generally more stable-ish, while being CLI/API-compatible (at least based on the issue reports I've fielded)
Re:More developers use Linux than Mac, according to 2022 Sta... by ollien on Wednesday December 28, 2022 @02:16PM (#34164665)
The reason I hated Docker Desktop was simply that I needed to spin up a VM which used up a bunch of memory (yes it's configurable, but I don't want to mess with that. I don't have to on Linux!). I don't believe the podman Mac client solves this problem (nor can it, given it just simply isn't running on a Linux kernel)

On Linux, I quite like Podman! It has a couple of gaps, but for simple things it works great

Re:More developers use Linux than Mac, according to 2022 Sta... by infotogivenm on Wednesday December 28, 2022 @02:12PM (#34164609)
I haven’t noticed locks/hangups but I have noticed that running/building on x86_64 images on ARM macOS (through Rosetta) is excruciatingly slow. I ended up having to switch us to cross compiling, which works okay but changing all our builds over will be a pain. For greenfield images I have not had much issue anecdotally.
Re:More developers use Linux than Mac, according to 2022 Sta... by runjake on Wednesday December 28, 2022 @02:46PM (#34165017)
So, what do you actually use?
Re:More developers use Linux than Mac, according to 2022 Sta... by stusmall on Wednesday December 28, 2022 @05:27PM (#34166881)
Ubuntu
Re:More developers use Linux than Mac, according to 2022 Sta... by cassianoleal on Wednesday December 28, 2022 @02:47PM (#34165036)
colima [0] has been working pretty well for me, much better than Docker Desktop.

[0] https://github.com/abiosoft/colima

Re:More developers use Linux than Mac, according to 2022 Sta... by daitangio on Wednesday December 28, 2022 @03:11PM (#34165306)
Me too using (co)lima and no issue. You can mix x86 and ARM images in a transparent way
Re:More developers use Linux than Mac, according to 2022 Sta... by pjmlp on Wednesday December 28, 2022 @02:49PM (#34165045)
Plenty of development workloads do just fine without Docker.
Re:More developers use Linux than Mac, according to 2022 Sta... by bobkazamakis on Wednesday December 28, 2022 @03:24PM (#34165458)
Everything works fine without docker, but would you rather line up atoms on your processor with a magnet by hand, or write code?
Re:More developers use Linux than Mac, according to 2022 Sta... by pjmlp on Wednesday December 28, 2022 @03:34PM (#34165588)
I have managed to write code for 30+ years without Docker, or hand aligning atoms, go figure.
Re:More developers use Linux than Mac, according to 2022 Sta... by seiferteric on Wednesday December 28, 2022 @02:50PM (#34165059)
I am surprised there has not been an effort to separate docker from linux. It seems like it should be possible by providing the syscall layer in a crosss platform library somehow. I remember years ago there was a "linux userland" project where they extracted parts of the linux kernel (like networking) into userland libraries, but I don't think it exists anymore. WSL 1.0 was probably the closest thing recently.
Re:More developers use Linux than Mac, according to 2022 Sta... by paulmd on Wednesday December 28, 2022 @03:02PM (#34165207)
The BSD world has had this for ages in the form of "branded zones" in opensolaris/illumos and linuxulator for jails.

It's too complex to thunk windows calls to linux, that is what WSL1 tried and failed at, because windows is just too different from a POSIX paradigm for that to work well. But posix-on-posix isn't really all that hard... nor is other *nix-on*nix.

Re:More developers use Linux than Mac, according to 2022 Sta... by schappim on Wednesday December 28, 2022 @03:11PM (#34165305)
> that is what WSL1 tried and failed at

What did they do differently with WSL2+?

Re:More developers use Linux than Mac, according to 2022 Sta... by nodja on Wednesday December 28, 2022 @03:36PM (#34165608)
Broadly speaking WSL1 is linux implemented in the windows kernel, think reverse wine. WSL2 is linux running on a thin VM with several bridge layers that can access windows resources (networking, files, GPU, etc.)
Re:More developers use Linux than Mac, according to 2022 Sta... by dm319 on Wednesday December 28, 2022 @04:08PM (#34165986)
Isn't WSL1 everything _but_ linux? I.e. more like gnu/WinNT.
Re:More developers use Linux than Mac, according to 2022 Sta... by schappim on Wednesday December 28, 2022 @04:19PM (#34166108)
Thanks for the explanation! I always knew that WSL1 was implemented on the Windows kernel and thought it was quite ambitious - props to them! I didn't know they moved to the VM model for WSL2.
Re:More developers use Linux than Mac, according to 2022 Sta... by baq on Wednesday December 28, 2022 @03:21PM (#34165429)
Everything, WSL2 is a special hyperv vm. It’s a true Linux kernel with a true Linux file system. The network stack is one way integrated so you don’t have to forward any ports or configure NAT.
Re:More developers use Linux than Mac, according to 2022 Sta... by thangngoc89 on Wednesday December 28, 2022 @03:21PM (#34165433)
WSL2 uses VM. So actual Ubuntu distribution under the hood
Re:More developers use Linux than Mac, according to 2022 Sta... by qbasic_forever on Wednesday December 28, 2022 @03:20PM (#34165421)
It runs a hyper-v VM with a Linux kernel.
Re:More developers use Linux than Mac, according to 2022 Sta... by seiferteric on Wednesday December 28, 2022 @03:50PM (#34165784)
I wonder if Windows could add more support in the kernel for better POSIX support, or maybe it's just too hard.
Re:More developers use Linux than Mac, according to 2022 Sta... by baq on Wednesday December 28, 2022 @04:38PM (#34166332)
They tried, it was possible but way too slow to be usable due to all the baggage that the NT kernel carries (think antivirus support).
Re:More developers use Linux than Mac, according to 2022 Sta... by marwis on Wednesday December 28, 2022 @03:15PM (#34165359)
There's a native Docker on Windows that runs Win32 containers.
Re:More developers use Linux than Mac, according to 2022 Sta... by sigjuice on Wednesday December 28, 2022 @03:52PM (#34165804)
For all practical purposes, Docker IS Linux. WSL 1.0 had serious backing from Microsoft and it wasn't even trying to be cross platform. If WSL 1.0 couldn't make it, then it is unlikely that another project with an even larger goal will emerge and be successful.
Re:More developers use Linux than Mac, according to 2022 Sta... by TimTheTinker on Wednesday December 28, 2022 @02:53PM (#34165091)
My personal fix: Pay for a Parallels Pro license and run Docker in an Ubuntu VM that is configured to start at login and run in the background.

I use the Remote SSH plugin in VSCode and configured the VM to forward all container ports to localhost (as well as forward port 22 to port 2222 on localhost). I also have `alias vmlogin=ssh -X -p 2222 localhost` in my .zsh_profile and set up ssh to use a public/private key pair for quick logins.

Re:More developers use Linux than Mac, according to 2022 Sta... by turndown on Wednesday December 28, 2022 @02:57PM (#34165126)
I know you aren’t denying OPs points but the fact that the solution is to just run Linux(with a $99 fee, from what I can see online) to solve how bad Docker is on OS X is a huge problem.
Re:More developers use Linux than Mac, according to 2022 Sta... by TimTheTinker on Wednesday December 28, 2022 @06:29PM (#34167451)
I also like how I'm gaining experience using the "developer's OS", which I'm sure will be valuable in the future.
Re:More developers use Linux than Mac, according to 2022 Sta... by res0nat0r on Wednesday December 28, 2022 @03:02PM (#34165191)
Colima on an M1 Mac has been working fine for me. https://github.com/abiosoft/colima

Just do a 'colima start' once a month when I actually have to reboot my mac, to boot up the background VM, and everything else basically runs as normal.

Re:More developers use Linux than Mac, according to 2022 Sta... by baq on Wednesday December 28, 2022 @03:18PM (#34165387)
I tried Rancher desktop which is I assume a gui wrapper for Colima. I had an issue where I had to put 9p to some obscure config file for a mount to work and then the whole thing hung under load anyway.
Re:More developers use Linux than Mac, according to 2022 Sta... by hakanderyal on Wednesday December 28, 2022 @03:02PM (#34165194)
After 10+ years of enjoying my time on mac, I switched back to Windows because of Docker.

It was working fine for me, maybe requiring one restart per month. But the slowness was unbearable anymore. Don't even get me started on the effects of it on battery life.

To anyone looking for a replacement, Windows is usable. I still miss the consistency of MacOS tho.

Since I only use laptops, I haven't even bothered to try Linux again, my last experience was not that great with compatibility issues and hibernation problems.

Re:More developers use Linux than Mac, according to 2022 Sta... by ggregoire on Wednesday December 28, 2022 @03:03PM (#34165212)
Just to add another data point, Docker works fine on mine:

MacBook Pro (14-inch, 2021)

Chip Apple M1 Pro

Memory 16 GB

macOS Monterey

Docker 20.10.17

I agree it was awful on the previous generations tho.

Re:More developers use Linux than Mac, according to 2022 Sta... by stock_toaster on Wednesday December 28, 2022 @03:05PM (#34165240)
I found it so painful that I just use a docker context targeting a remote docker instance running on a linux machine. Works well enough for my needs, but certainly isn't a solution for everyone.
Re:More developers use Linux than Mac, according to 2022 Sta... by tensor on Wednesday December 28, 2022 @03:08PM (#34165278)
I've been using Rancher desktop and it seems to work fine for me. I don't notice anything being particularly slow and no lockups or anything. If Mac wasn't an option I really don't know if I'd try using Linux on the desktop vs Windows with WSL.

I have nothing but horrible memories when I had to use Linux on the desktop.

Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @03:09PM (#34165289)
No problems here with Docker and macOS. Docker and Windows works too. We have a ratio of about 97% developers on macOS, 2% on windows and 1% on 'else' which is mostly Linux and a single BSD user.

This includes multiple editors and IDEs used, multiple languages and multiple frameworks, also multiple types of development (from common devops facilities development to front-end simulation, on-prem and cloud, C#, Python, Java, Go, Rust, Swift, Objective-C, C++, TypeScript, Scala, T-SQL, PL/SQL (yep, RDBMS with on-DB applications), some on plain docker, some on Podman some on local Kubernetes clusters, all using wired and wireless connections (or both), one or more VPN connections), and nobody is having any issues with macOS and Docker on Intel or ARM. The only non-ARM OS we have around is Windows because we can't legally get it. Everything else is multi-arch, except for some legacy Oracle and IBM applications that are being phased out and have been handed off to a third party to maintain while we rip them out.

We have the luxury of not really doing and foreign architecture compilation because you can develop locally and CI will do matrix builds so we can run on a mixed spot fleet on AWS. We used to build for POWER8 too (before we handed off the IBM nonsense). Some people do it anyway, especially those who want to test binary protocols (a very small percentage) when they write applications that do IT<-->OT communication and want to make sure that the architecture on the IT side doesn't mess up binary payloads that the OT side won't know what to do with. This is usually done with k3s and skaffold where we attach and 2nd node to a Rancher Desktop instance that runs pure x86 instead of x86-in-ARM via Rosetta. We also have 1 Linux user who does this, but she's just using plain qemu emulation for ARM-on-x86 (instead of the other way around on M1/M2 Macs).

So all in all, I think the problem is still valid, but your experience is not really representative it seems. Keep in mind that happy people tend to not go on the internet and tell everyone about all the problems they don't have ;-) So most reports we'll see will be from people having issues with something.

The biggest issue we used to have was the AUFS support, but even that was mostly a painpoint for those who could not auto build from the ide or didn't have things like Jib. That has been resolved for over 5 years tho.

Re:More developers use Linux than Mac, according to 2022 Sta... by kitsunesoba on Wednesday December 28, 2022 @03:53PM (#34165811)
> a single BSD user.

This is surprising. I run FreeBSD on a home server but I would imagine that it'd be rather unproductive to run as a web dev workstation OS, since it shares friction points with macOS (mainly, it's not Linux) but doesn't have even a fraction as many users which means you're basically on your own for fixing any issues that crop up.

More power to this individual if they're making it work though. It's great to see diversity in the desktop/workstation OS usage… in my view, desktop monoculture will only come back to bite us in the ass.

Re:More developers use Linux than Mac, according to 2022 Sta... by oneplane on Wednesday December 28, 2022 @04:08PM (#34165985)
Yeah, it's a bit of a choice, but a happy user that takes care of the friction is a win for me. From an MDM perspective all we require is that your work machine can run osquery. We host the rules in an internal repo so if someone wants to use something we don't support they have to write the compliance checks themselves ahead of time (and get them approved, we do help with that).

I also think that monoculture isn't really the best way, but neither is an abundance of variations causing uncertainty. We need to be able to plan ahead and look ahead, and have enough of a standard to operate.

Luckily, convincing stakeholders that "but we imaged this workstation last year" isn't a valid argument in any scenario (security, productivity, DLP) wasn't all that hard, and the jump from there to "images and MDM are all fun, but near realtime posture verification is the only way" was made with relative ease.

Most people still stick to the "supported and automated" provisioned workstations, but those who want something else can have it, if they deliver on their compliance, non-friction and actual work. Best of all worlds.

Re:More developers use Linux than Mac, according to 2022 Sta... by duped on Wednesday December 28, 2022 @03:11PM (#34165310)
> It's such a fundamental tool to development in this day and age

I'd change this to "web" development. There are a lot of us not doing anything that requires even thinking about docker.

Re:More developers use Linux than Mac, according to 2022 Sta... by kenjackson on Wednesday December 28, 2022 @03:44PM (#34165716)
I’d make that “cloud” development. The web is a part of it — a big part, but just a part.
Re:More developers use Linux than Mac, according to 2022 Sta... by Rimintil on Wednesday December 28, 2022 @03:49PM (#34165776)
It’s more effort to deploy docker then to use App Services in Azure. Fortunately no need for a container environment. It adds an unnecessary complexity.
Re:More developers use Linux than Mac, according to 2022 Sta... by stusmall on Wednesday December 28, 2022 @03:49PM (#34165775)
I wouldn't be so quick to dismiss. It's true you see it a lot more on the cloud side of things. I've found its really useful in any situations where I want to capture the state of the OS along with the program. A good example is creating a CI environment that can be easily reproduced on a developers machine. It cuts out a lot of back and forth of "it works on my machine" when you are just a docker build/docker run away from having a local test image that is identical to whats run in CI. Some of the project I mentioned in the above post were very much not "web" projects. I've also seen it as a method to share difficult to set up development environments like you sometimes see in embedded development.

I'm not alone in picking the word "fundamental". In the same survey that is article is based on, Docker was the #1 "other tool" for professional devs. SO had this to say about it " Last year we saw Git as a fundamental tool to being a developer. This year it appears that Docker is becoming a similar fundamental tool for Professional Developers, increasing from 55% to 69%." I think the comparison is works too. Git isn't the best tool for everyone, but is extremely common and a sound default. Docker also isn't the best tool for everyone, but isn't far off on being as ubiquitous.

Re:More developers use Linux than Mac, according to 2022 Sta... by nicce on Wednesday December 28, 2022 @04:05PM (#34165939)
Docker is used everywhere. Containers allow fluent use of any CLI tool in crossplatform way. No need to bang your head into the wall when fixing your dependencies.
Re:More developers use Linux than Mac, according to 2022 Sta... by einpoklum on Wednesday December 28, 2022 @03:18PM (#34165388)
> The docker situation on MacOS is so painful

Stop trying to get me to switch to MacOS :-P

> It's such a fundamental tool to development

s/fundamental/gratuitous, undesirable/ . IMNSHO.

Re:More developers use Linux than Mac, according to 2022 Sta... by throwaway6734 on Wednesday December 28, 2022 @03:19PM (#34165405)
Adding a data point: docker on Mac crashes for me whenever I connect to the company vpn. I need to go into activity monitor, kill all docker processes, and reboot. It's not the end of the world, but it is frustrating
Re:More developers use Linux than Mac, according to 2022 Sta... by SEJeff on Wednesday December 28, 2022 @03:22PM (#34165444)
Try this:

    brew install podman-desktop
https://podman-desktop.io is a full (free) docker replacement supported by redhat.
Re:More developers use Linux than Mac, according to 2022 Sta... by yamtaddle on Wednesday December 28, 2022 @03:31PM (#34165562)
Docker-the-daemon not performing well on Mac has always struck me as a weird complaint. It's like complaining that MS-DOS FAT32 defrag doesn't work well on Linux with an ext4 volume. It's not native to the platform and uses alien features, it's cool that it works as smoothly as it does.

Meanwhile, the client works just fine and can connect to a headless machine running Linux if you don't want the cost of virtualizing the host OS. Like, if my Linux laptop were having trouble running a Mac copy of Photoshop in a Mac VM (ignore the legality) and it was really important for work and that was getting in my way, I'd... get a Mac. If Docker on Mac isn't cutting it, get a Linux box—it's not Mac-native software and you can still interact with it pretty seamlessly from the Mac.

Re:More developers use Linux than Mac, according to 2022 Sta... by withinboredom on Wednesday December 28, 2022 @03:39PM (#34165635)
Hell. I have buildkit containers running in a k8s dev cluster. It’s perfect for building locally and the only slow part is shipping the build context. But with stuff like devspace, running the whole thing with auto-sync/restart is just simply amazing.
Re:More developers use Linux than Mac, according to 2022 Sta... by dmix on Wednesday December 28, 2022 @04:06PM (#34165949)
Have the performance issues with Docker been resolved on M1/2 yet?

I remember playing around with running our codebase through Docker when M1 first got released and it was really slow (due to ARM and/or shared disk read speeds?). But from what I understood it was something that was to be fixed soon...

I'd love to use Docker at work but it was a show stopper.