Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by Alex3917 on Monday October 18, 2021 @04:49PM
(#28911526)
Docker doesn’t really work on Mac. Like it technically runs, but just barely. Because it uses containerization inside virtualization, it pegs the CPU just to run a hello world app and completely drains the battery in 30 min. Oh and the fans sound like an airplane taking off.
[ Parent
| on HN ]
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by cmckn on Monday October 18, 2021 @10:56PM
(#28914380)
I don’t know anyone at work who would agree with this. Docker is fine on macOS, honestly always has been. Sure, it will show up in Activity Monitor, but so will any other software that is actually doing something. I have never seen my CPU peg because of Docker, and I regularly run large stacks, use Earthly for all my builds, etc. The overhead of the VM + containerd is truly not that large.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by astrange on Tuesday October 19, 2021 @07:43AM
(#28917045)
CPU % in top and similar tools isn't a great proxy for energy usage anyway, it's a lot more complicated than that.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by lkbm on Tuesday October 19, 2021 @08:50AM
(#28917508)
Docker is terrible on Macs, but I used to run Docker+vscode+Firefox+Brave+Slack+misc. I'd run into issues on my 2015 MBP from time to time, but on the 2019 models it was fine.
gulp.watch would often eat an entire core, and stuff in Docker ran slower than on Linux, but my laptop could keep up. vscode didn't lag and Firefox ran just fine—all with 5+ Docker containers running.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by Gigachad on Tuesday October 19, 2021 @12:07AM
(#28914769)
I have no idea what you are talking about. I have about 7 containers running the full work app and I can't hear any fan noise and the laptop is running cold.
This thing is running Rails, mysql, elastic search, redis, mongodb, and workers inside docker. As well as nodejs, vscode, a handful of electron apps all at the same time and the laptop is cold.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by jordanthoms on Monday October 18, 2021 @05:39PM
(#28912123)
Not my experience at all, you must have something weird in your setup. For a full dev environment I'm running containers with postgres, cockroachdb, several ruby apps, kafka, some JVM based stuff, and clickhouse and it does hit battery life a bit but certainly not pegging the CPU, actually it's using less than Slack...
Re:MacBook Pro 14-inch and MacBook Pro 16-inch
by cassianoleal on Monday October 18, 2021 @07:24PM
(#28913123)
Not my experience either on a fanless M1 Air. I can run lots of containers without it perceptibly heating up or slowing down. Battery life does suffer but I can still usually get at least 4-5h of solid programming like this.