Live data from Hacker News

Docker on MacOS is slow and how to fix it

paolomainardi.com

61–70 of 211 posts

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

#61
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…

I've recently tried podman on a Mac and `podman machine start` failed with an “unknown error”. It was a disappointment.

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

#62
post #39

Earlier quoted context omitted.

One issue I ran into at my previous employer was pylint on a large Python codebase. Pylint is slow on the best of days, but the difference on an M1 Mac running under docker (to standardize the version and settings across the team) was something like 10x as slow; several *minutes* to lint the codebase, which we absolutely required before code could be checked in. It finally got a lot better when VirtioFS came out, whi…

Are your Docker images x86_64? On an M1 Mac x86_64 images run under qemu which is very slow, If an ARM64 image is available it should run a bit faster.

Oh man x86 is so slow it's insane. If you're using a non-ARM base image Docker will happily run the x86 variant for you automatically. Unsurprisingly, running an x86 VM inside an ARM VM on a laptop is very very slow

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

#64
I have "use virtualization" turned on in Docker Desktop for Mac, but I don't see different options for the file sharing implementation. I'm currently on version 4.14.1 (91661).

Separately, with "use virtualization" turned on, should I also enable "VirtioFS accelerated directory sharing"?

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

#65
post #53
post #41

Earlier quoted context omitted.

> everyone in the development & support team uses Mac (except this one guy who insisted in Linux), > certainly a pain to just keep it updated. > Linux and it's a lot of pain to setup. If you're not using Linux, how are you justifying these claims? > certainly a pain to just keep it updated. Excluding the boot time for both, MacOS takes between 15 and 45min to update. Linux is a few seconds. I suspect that the only OS…

How do I get my laptop to properly sleep when using Linux?

I'm not sure I understand the question? I close the lid. How do you do it?

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

#66
post #53
post #41

Earlier quoted context omitted.

> everyone in the development & support team uses Mac (except this one guy who insisted in Linux), > certainly a pain to just keep it updated. > Linux and it's a lot of pain to setup. If you're not using Linux, how are you justifying these claims? > certainly a pain to just keep it updated. Excluding the boot time for both, MacOS takes between 15 and 45min to update. Linux is a few seconds. I suspect that the only OS…

How do I get my laptop to properly sleep when using Linux?

For me 'systemctl hybrid-sleep' does the trick.

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

#67
post #41

Earlier quoted context omitted.

> everyone in the development & support team uses Mac (except this one guy who insisted in Linux), > certainly a pain to just keep it updated. > Linux and it's a lot of pain to setup. If you're not using Linux, how are you justifying these claims? > certainly a pain to just keep it updated. Excluding the boot time for both, MacOS takes between 15 and 45min to update. Linux is a few seconds. I suspect that the only OS…

One can be using something that isn’t Linux for development and still be familiar with it. Perhaps they did in the past? Perhaps working in the same team as someone exposes them to the alleged headaches? This is a thread on Hacker News, not an academic article. You aren’t owed a massive amount of “justification” for these “claims”.

> You aren’t owed a massive amount of “justification” for these “claims”.

I was using Mac for development due to company policy (compliance). It is by far the worst development experience I have ever had. Brew is terrible. Updates are agonizing. The user interface is awful. Containers are a shitshow.

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

#68
post #53
post #41

Earlier quoted context omitted.

> everyone in the development & support team uses Mac (except this one guy who insisted in Linux), > certainly a pain to just keep it updated. > Linux and it's a lot of pain to setup. If you're not using Linux, how are you justifying these claims? > certainly a pain to just keep it updated. Excluding the boot time for both, MacOS takes between 15 and 45min to update. Linux is a few seconds. I suspect that the only OS…

How do I get my laptop to properly sleep when using Linux?

Good question :)

Assuming this is a real question and not just an excellent ruse; the answer, in terms of simplest setup would be

1) Install a vanilla default, such as Ubuntu 2) If that fails, buy a vanilla default laptop

To be fair a reason why this is easier on MacOS is they have like 3 laptop options rather than 3000. If your problem still persists, then there is a step 3

3) Become an expert in cli foo

After that fix, you're welcome to either pretend the cli foo was incredibly easy all along, or weep and dream of a gui with two glowing buttons [Cancel] [OK], providing all the configurability you might ever need

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

#69
post #65
post #53

Earlier quoted context omitted.

How do I get my laptop to properly sleep when using Linux?

I'm not sure I understand the question? I close the lid. How do you do it?

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.

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

#70
post #41

Earlier quoted context omitted.

> everyone in the development & support team uses Mac (except this one guy who insisted in Linux), > certainly a pain to just keep it updated. > Linux and it's a lot of pain to setup. If you're not using Linux, how are you justifying these claims? > certainly a pain to just keep it updated. Excluding the boot time for both, MacOS takes between 15 and 45min to update. Linux is a few seconds. I suspect that the only OS…

My read on it was that this person heard what their coworker has to go through, and has formed an opinion based on that. I understand that climbing Mt. Everest is fairly difficult, despite not having done it myself.

I find how specific coworker complains about Linux while simultaneously demanding to use it pretty contradictory. That's why I am interested in more details.
Post reply on HN