Live data from Hacker News

Docker on MacOS is slow and how to fix it

paolomainardi.com

121–130 of 211 posts

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

#121

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…

> but falls badly in the coding & tooling department. That's more perception than reality, often from people who simply don't know how to use Windows. Visual Studio, Visual Studio Code, and IntelliJ IDEA blow any Linux text editor out of the water for developer productivity. For Linux workloads there is the Windows Subsystem for Linux (WSL 2), which now even supports GUIs with GPU acceleration! Visual Studio Code can…

But the remote stuff is blocked in the FOSS version :(

https://github.com/VSCodium/vscodium/blob/master/DOCS.md#pro...

Typical Microsoft. Pretending to be FOSS but there's always some sneaky strings and telemetry attached.

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

#124

Earlier quoted context omitted.

> Maybe something like Docker Desktop: free for personal use, license required for companies? That seems like a risky bet as an indie dev. That's how it works currently.

Yes, but I'm guessing kdragOn's legal budget is a whole lot smaller than Docker, Inc's, so the perceived risk of stealing the product would be a whole lot smaller.

Most businesses are honest, plus once you get to a certain size, it's all about CYA, so sure, some people might plunder it, but if you provide something a lot of people want, you could make plenty of money from the legitimates or people afraid of getting sued at some point.

Then once the business is viable, the legal budget will be bigger...

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

#125

Earlier quoted context omitted.

Have fun managing osx and Linux dependencies then when you could just maintain one.

In the languages I work with (primarily JavaScript and Rust), cross-platform compatibility tends to be pretty much a non-issue. I develop on macOS, deploy on Linux, and it Just Works. No extra work required.

You forget to mention all backend services (db, redis etc are managed and you need internet connection and cloud credentials for even a development workflow.

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

#126

Earlier quoted context omitted.

Apple laptops definitely have issues sleeping. https://forums.macrumors.com/threads/macbook-air-m1-doesnt-s... There's a litany of bugs in Apple's software. This often gets hidden because developers use workarounds of various sorts, but if you know, you know. It's honestly embarrassing how buggy Apple software is given the vertical integration you describe. The worst part is that almost all of it is closed source so…

> The worst part is that […] The actual worst part is that it is impossible to draw a meaningful conclusion from a problem report like this one: > Mine also shines from the holes when closed. M1 Air. Noticed happens when browser is open and i closed the lid . Yeah, it shines from the holes. Also develops a halo. Sometimes two. Maybe three, dunno. Sometimes the laptop can see stars. Yes, it can be indeed an OS related…

Many of the bugs I'm talking about can be reproduced on a completely vanilla system.

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

#127

Earlier quoted context omitted.

This is an unhelpful and useless comment

And so is yours? I do often find myself wondering whether Docker saved developers or system administrators any time. Is Docker really better than building an AMI and provisioning EC2 instances on-demand?

You provide multiple cloud environments for every dev?

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

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

Biggest question: is it backwards compatible with Docker? Docker CLI and docker-compose is used in tons of scripts. To have any change of this being adopted in a team setting it needs to be a drop in replacement.

Yes, Docker CLI will be configured to talk to the VM.

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

#129
post #19

My preferred fix: don't develop in Docker.

My preferred fix: don't develop in Mac.

I agree, but my company is in a very regulated area, so they standarised on Macs because of the very strong controls built into them at a hardware level.

I do miss my thinkpad and Fedora.

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

#130

Earlier quoted context omitted.

> The worst part is that […] The actual worst part is that it is impossible to draw a meaningful conclusion from a problem report like this one: > Mine also shines from the holes when closed. M1 Air. Noticed happens when browser is open and i closed the lid . Yeah, it shines from the holes. Also develops a halo. Sometimes two. Maybe three, dunno. Sometimes the laptop can see stars. Yes, it can be indeed an OS related…

Many of the bugs I'm talking about can be reproduced on a completely vanilla system.

You have to be a little bit more specific than that and quantify and itemise the «many» part. Otherwise it is pure speculations, generalisations, arm chair theories and hand waving.

What is a «vanilla system»? A brand new laptop? Then the hardware is likely faulty, and Apple will replace the faulty computing contraption or refund the purchase. A brand new install on an existing laptop? Likely a hardware fault, a compatibility problem (less likely) or, indeed, a specific or unspecified defect in the software.

I reboot my laptop approximately once a quarter – when a new update or upgrade is released. The average uptime is 3 months. I run a uninterrupted succession of OS X updates and upgrades dating back into 2009 – when I begrudgingly switched away from my Sony Vaio Z17 business laptop running Linux due to the X server randomly crashing on and bricking Vaio Z series laptops in-flight or upon an awake with no available recourse. I have not had to reinstall OS X from scratch even once and still occasionally come across non-OS files on the file system being intact since the original 2009 install. Different kernel versions in between 2009 and now have crashed on me less than ten times. The laptop goes to sleep and then wakes up daily. Zero maintenance. I used to have to reboot it once a year to disable the CSR mode, but not anymore – the stuff just works (except when I need to run dtrace / dtruss which is a less once in two years activity now). Clearly your vague definition «many bugs» does not apply to me.

I can't say the same about the said Vaio laptop that I still happen to have around, and that is in a perfect working condition (sans the obsolete 32-bit CPU and maxed out 4Gb of RAM). It runs a version of Ubuntu but every upgrade is still a gamble. A upgrade to Ubuntu 20 has bricked the laptop in the umpteenth time, and it now requires an autopsy and a full reinstall via booting it from an external eSATA drive via a PCI Express card attached to it.

Post reply on HN