Live data from Hacker News

Docker on MacOS is slow and how to fix it

paolomainardi.com

201–210 of 211 posts

Re: Docker on MacOS is slow and how to fix it

#201
post #152

Earlier quoted context omitted.

If you're talking about tramp, its design is quite a bit worse than vscode's or intellij's remote support.

Probably, but point is it’s not something revolutionary. I’ve been using tramp for quite some time and despite some quirks it’s a working solution.

The big issue with tramp is that code doesn't run remotely. Running LSPs is impractical over a network connection, no matter how close the remote is.

Re: Docker on MacOS is slow and how to fix it

#202
post #193

Earlier quoted context omitted.

That wasn't what we were discussing about, goalkeeper.

The goal is so large though! You can't score on something as simple as running old software or using whichever graphics API you prefer?

Apparently having the tooling greater than the universe doesn't fit into that goal, bumps off.

Re: Docker on MacOS is slow and how to fix it

#203

Earlier quoted context omitted.

I have a nearly maxed out Mac Studio and my experience was the same, until I got my work to fork out a license for parallels and I just installed docker in an ubuntu VM and configured my DOCKER_HOST on the host to talk to the vm. Now it's crazy fast.

You are maintaining all your files in the VM though, right? I'm playing with setting up a sync from vm to host so I can do that but still use my local tools.

IntelliJ autosyncs all my files to the VM seamlessly using rsync, yes. I've considered switching to use the remote development features in intellij and just managing everything in the VM and not having anything on the host but I haven't had any trouble with my current setup so I haven't bothered tbh.

Re: Docker on MacOS is slow and how to fix it

#204

Earlier quoted context omitted.

I have a nearly maxed out Mac Studio and my experience was the same, until I got my work to fork out a license for parallels and I just installed docker in an ubuntu VM and configured my DOCKER_HOST on the host to talk to the vm. Now it's crazy fast.

How does file sharing performance compare?

I automatically sync my workspace to the VM using IntelliJ and rsync so I don't mount any host filesystems in the VM for docker. I just use linux native volumes inside the vm itself and it works fine for me so far. It takes a bit of configuration from the IDE side but it works pretty seamless once it's setup.

Re: Docker on MacOS is slow and how to fix it

#205

I finally gave up the effects of Docker on performance and battery life and switched to Windows. I still don't have a long lasting battery, but at least performance is better.

I have been working in a Citrix workspace Windows machine for the past 6 months with a Ubuntu 20 wsl2. I was very much anxious of the experience before onboarding but I have to say, I barely deal with the Windows side of things. Having said that, if I was to move away from mac, I‘d just go directly to Linux.

Gaming is my guilty pleasure. While the gaming ecosystem on Linux is getting better everyday (thanks, Steam!), the limited time I spend on gaming doesn't allow me to tinker, I just want everything to run without limitations.

Re: Docker on MacOS is slow and how to fix it

#206
post #60

Funny that this came up — shameless plug: I've actually been working on a new Linux+Docker+Kubernetes solution for macOS recently! Already added quite a few improvements over existing apps including Docker Desktop, Rancher, Colima, etc: - Fast networking: 30 Gbps! vs. 150 Mbps with Docker VPNKit. Full VPN compatibility, IPv6, ping, ICMP and UDP traceroute, and half-open TCP connections. - Bidirectional filesystem sha…

Blog post author here, cannot wait to see the solution out in the wild, it will be open-source ? Can you let me try it ?

It won't be open-source, sorry.

> Planning to release this as a paid app in January. Not OSS, but I think the value proposition is pretty good and there will be a free trial. Not sure about pricing yet.

> If anyone is interested, drop me an email (see bio) and I'll let you know when this is ready for testing :)

Re: Docker on MacOS is slow and how to fix it

#207
post #60

Funny that this came up — shameless plug: I've actually been working on a new Linux+Docker+Kubernetes solution for macOS recently! Already added quite a few improvements over existing apps including Docker Desktop, Rancher, Colima, etc: - Fast networking: 30 Gbps! vs. 150 Mbps with Docker VPNKit. Full VPN compatibility, IPv6, ping, ICMP and UDP traceroute, and half-open TCP connections. - Bidirectional filesystem sha…

Docker VPNKit, fast VirtioFS, Much lower background CPU usage Are there some new Linux drivers involved, or is this "just" a better tuned VM?

No new drivers, but I did make some changes to the Linux kernel. It's mostly a better tuned VM and services on both sides, e.g. a custom fast networking stack in place of Docker's VPNKit.

(Also, by "fast VirtioFS", I meant the same VirtioFS implementation tested in the article because it's faster than other solutions — sorry if it wasn't clear.)

Re: Docker on MacOS is slow and how to fix it

#208

Earlier quoted context omitted.

Again, the reason it seems great to you is because developers have papered over so many bugs and other deficiencies. Linux has its own issues but it overall is at a completely different quality level from macOS.

Linux's bugs are just in a different place. Macos's bugs are all deep technical problems that Apple doesn't have enough senior engineers to bother fixing. (Eg the FS watch APIs). Or weird bloaty preinstalled processes that eat up all your CPU when nothing is happening on your computer. Or... anything that the light of XCode touches. Linux's bugs are things like the fact that every program has a slightly different set…

Meh. Apple's software has silly UX deficiencies on top of the deep technical bugs. You can't even have opposite scrolling directions for mice and touchpads unless you install a third-party app. Some animations are extremely long, and on top of that can't be cancelled, resulting in atrocious UX for power user use cases. Apple no longer does subpixel antialiasing, making text look quite a bit worse than Linux on many screens. Etc.

Re: Docker on MacOS is slow and how to fix it

#209
post #42

Docker is cripplingly slow on MacOS. I have a maxed out 16" mbp... starting rspec on our app takes 55-60 seconds. Compare that to my coworkers on Linux and Windows, who both see sub 10 second boots, and it's absolutely impossible to be ok with those numbers.

I use Docker inside of Parallels running Linux and get far better performance than Docker Desktop.

Re: Docker on MacOS is slow and how to fix it

#210
post #190

Earlier quoted context omitted.

Huh this was literally 2 weeks ago I looked into this and ended up using a third-party community podman docker compose substitute. I will have another look.

https://www.redhat.com/sysadmin/podman-docker-compose Podman listens on the docker socket, and the official docker-compose just works

Oh wow I wasn’t expecting it to work that way. I was expecting to have to use some kind of podman aliased compose alternative that copies the CLI of docker compose.
Post reply on HN