Live data from Hacker News

Docker on MacOS is slow and how to fix it

paolomainardi.com

171–180 of 211 posts

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

#171
post #19

Earlier quoted context omitted.

My preferred fix: don't develop in Mac.

For many Mac is the only sensible option. There's one developer in our company that uses Linux and it's a lot of pain to setup. Mac has the best balance between coding, utility tools and "other work stuff". Windows probably on par if not more for "work stuff" but falls badly in the coding & tooling department. Linux is OK ish for coding and utility but falls behind for "other work stuff" and certainly a pain to just…

> Mac has the best balance between coding, utility tools and "other work stuff".

That maybe used to be true. But today, Windows is that OS. In one OS, I can freely develop in Windows, Docker, WSL2, including near seamless integration of apps, browsers, and even GUIs. And with VS Code, I basically have any OS except macOS (but who cares?) at my fingertips in a single interface. The dev experience is by far the lowest friction between Windows and macOS.

And Windows has superior support for external hardware. macOS refuses to work well with anything that doesn't have Apple on the box.

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

#172

Earlier quoted context omitted.

For many Mac is the only sensible option. There's one developer in our company that uses Linux and it's a lot of pain to setup. Mac has the best balance between coding, utility tools and "other work stuff". Windows probably on par if not more for "work stuff" but falls badly in the coding & tooling department. Linux is OK ish for coding and utility but falls behind for "other work stuff" and certainly a pain to just…

Everyone in my company just uses Windows if they don't want to bother with Ubuntu. Excellent Linux tool chain support, excellent driver support, it just works. WSL 2 is a game changer because it makes all the Linux centric dev tools available to Windows without setting up virtual machines or other such nonsense, even running graphical applications these days. The only major pain point I've run into (that isn't "I pre…

I centralize all my work through Windows these days (used to be a "Mac person"), but I was pleasantly surprised by Linux Mint recently. I use Ubuntu all the time through WSL2, but I am liking Mint so far as a little Linux GUI / server machine.

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

#173
post #33

Often overlooked: there is also podman machine and podman desktop (for windows and macOS). It is not as fancy as docker, but fully free and open source. It provides docker compatibility to some extent, you don’t need a license and it’s much less heavy than docker desktop. If you need kubernetes, there is also minikube, which provides a lot of options. Most of the things discussed in this article still apply for podma…

Podman has been a massive disappointment for me. I stupidly gave up my docker desktop because the company was trying to make cost savings and it was supposedly a drop-in replacement. Some short-lived containers like our repo’s linter takes easily 4x as long to run in podman as it did with Docker. Immediately I have lost productivity. It’s incredibly unreliable, every time I start my computer I have to podman machine…

When did you last use it? It _does_ support docker compose. Has for a while now actually.

I love it on Linux. The Mac version is not as smooth yet, but, for my use case, still works a hell of a lot better than docker desktop. There is something deeply wrong with docker desktop's networking, and I literally have to restart it almost every time I make a change to one of our services. Not an issue with podman.

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

#175
post #91
post #86

Earlier quoted context omitted.

It cost money sounds like the big one

That's fair, but I think the value proposition is there for some :) I'm honestly not sure how pricing and licensing will work yet, but there will be some way to try it for free. Maybe something like Docker Desktop: free for personal use, license required for companies? That seems like a risky bet as an indie dev. There's also the whole question of one-time purchases vs. subscriptions. Subscriptions seem like the opti…

I’m not on macOS so I’m not in your intended audience but I’ve paid for stuff on the JetBrains model where the subscription also gets you permanent access to some previous version.

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

#176
post #159

Earlier quoted context omitted.

This is just really false. As someone that used Windows as my daily driver & migrated to Linux many years ago, the tooling on Linux is vastly superior. Most codebases and extensions also work trivially easy in shell, and command line operations in general are much less a pain point. I’ve since migrated to Mac because I was spending too much time making linux work properly, but I do miss the control I had. I have Wind…

So how you do you single step GPU shaders on your superior tooling?

The same way you develop iOS applications on your Windows laptop.

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

#177
post #157

Earlier quoted context omitted.

> Visual Studio, Visual Studio Code, and IntelliJ IDEA blow any Linux text editor out of the water for developer productivity. I used to love Visual Studio but Jetbrains has caught up to it and then surpassed it years ago. I generally run IDEA and VSCode for code editing and going back to Visual Studio is a real shock, especially with the pleasant memories I've had of using it. VSCode and IDEA run great on Linux, tho…

People that keep repeating that matra really don't do serious Windows development. GPU debugging, DDK support, ETW debugging, SQL Server integration, GUI designers for Forms, WPF, UWP, MFC, mixed mode debugging across .NET languages and C++, COM/WinRT IDE tooling,IIS integration,...

Yes, because this niche is so niche now it's not really worth talking about. Just as you're not talking about Mac as developer laptop to do Objective C or Cocoa development, but what 99% of programmers do.

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

#178
post #76
post #69

Earlier quoted context omitted.

It a jab at Linux/PC. Apple's completely vertical stack means that their machines never have issues sleeping. The huge variety of machines that Linux (and Windows) is expected to run on can cause problems entering S-states reliably. This issue is pretty uncommon (excluding the Windows modern sleep disaster), but that doesn't prevent comments like the GP throwaway.

AMD Cezanne chips were released in early 2021. Patches are still landing to fix suspend resume bugs in the Linux kernel: https://www.phoronix.com/news/Ryzen-5000-Laptop-Linux-6.1 This is a real issue with Linux. If you want the latest hardware, expect basic features like suspend resume not to work.

That's not a bug in the Linux kernel, it's a bug in the AMD hardware.

You can generally spot this immediately, even without reading the code, by the way it's described as a "workaround".

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

#179
post #159

Earlier quoted context omitted.

So how you do you single step GPU shaders on your superior tooling?

The same way you develop iOS applications on your Windows laptop.

Completely unrelated to how wonderful Linux tooling above anything else.

By the way, for iOS I single step shaders using Metal tooling on XCode and Instruments, no need for Windows.

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

#180
post #157

Earlier quoted context omitted.

People that keep repeating that matra really don't do serious Windows development. GPU debugging, DDK support, ETW debugging, SQL Server integration, GUI designers for Forms, WPF, UWP, MFC, mixed mode debugging across .NET languages and C++, COM/WinRT IDE tooling,IIS integration,...

Yes, because this niche is so niche now it's not really worth talking about. Just as you're not talking about Mac as developer laptop to do Objective C or Cocoa development, but what 99% of programmers do.

Where in the world are those 99% developers?!?

Quite curious, I guess if we focus on US market, while disregarding game consoles and 80% of the desktop market.

Post reply on HN