Re:Alpine makes Python Docker builds slower, and images larger
by henryfjordan on Wednesday January 29, 2020 @05:29PM
(#22186655)
Docker for Mac has always included some settings to tune the VM too. If your whole computer grinds to a halt because of Docker, it's because you probably allocated too many resources to the VM. I have half of my laptop CPU/RAM dedicated to the docker VM and while sometimes the fans go a little crazy I've never had the desktop lock-up or anything like that.
[ Parent
| on HN ]
Re:Alpine makes Python Docker builds slower, and images larger
by throwaway894345 on Wednesday January 29, 2020 @05:41PM
(#22186770)
This is true, but it doesn't solve the problem. If you give Docker half of your overall resources, it's just going to take Docker twice as long (most likely longer) to finish running the test suite or whatever you're doing in Docker. The crux of the problem is that Docker for Mac has pathological cases, probably involving host-mounted volumes that are big or overlaid or something else that we were doing; the containers can be near idle and Docker for Mac consumes 70-100% of its CPU budget (presumably doing volume/filesystem things).
Note that a little Googling reveals that this is a pretty common problem.
Re:Alpine makes Python Docker builds slower, and images larger
by henryfjordan on Wednesday January 29, 2020 @07:43PM
(#22187797)
If you give any VM all your cores and then your desktop locks up, you played yourself. That wasn't a good idea before docker and it's not a good idea now. I've personally had issues with using file-change-watchers on mounted volumes in some cases but because I limited my VM to half my resources, the underlying OSX was fine and I could still do whatever I needed to do (including killing those containers).
Re:Alpine makes Python Docker builds slower, and images larger
by weberc2 on Wednesday January 29, 2020 @08:42PM
(#22188162)
You’re being pedantic. Docker for Mac shouldn’t use the full VM allotment at idle, full stop. Nitpicking the parent for speaking in terms of the host cores instead of the VM cores is off topic and boring.