I'm working on barely / barelyvm [0] which replaces docker desktop with a new MacOS app and docker context.
I've been using Theo's "hill climbing" technique [1] applied to more than just UX and getting pretty good results. The new docker context points at a customised VM with a patched kernel to do memory and storage ballooning. That is, containers return unused ram back to the Mac and things like volume prunes get trimmed from the disk automatically freeing up disk space. It also does some magic to decide if a container is "idle" and will auto suspend the container to swap getting more ram back for Mac OS. If all containers get suspended the guest VM itself hibernates to disk and scales down to zero. On any request to one of the container ports the whole thing comes back in milliseconds and responds like nothing happened. This is mostly built for those of us with limited ram and storage in our macs but also for those who have memory hungry build steps that happen in your dev container builds but only need a fraction of the ram for running your app. [0] https://barely.dev
[1] https://youtu.be/xq0eB8vxeqk
Comments (1,123) 974 threads
Show all comments
Showing thread 96 of 974
I've been using Theo's "hill climbing" technique [1] applied to more than just UX and getting pretty good results.
The new docker context points at a customised VM with a patched kernel to do memory and storage ballooning.
That is, containers return unused ram back to the Mac and things like volume prunes get trimmed from the disk automatically freeing up disk space.
It also does some magic to decide if a container is "idle" and will auto suspend the container to swap getting more ram back for Mac OS. If all containers get suspended the guest VM itself hibernates to disk and scales down to zero.
On any request to one of the container ports the whole thing comes back in milliseconds and responds like nothing happened.
This is mostly built for those of us with limited ram and storage in our macs but also for those who have memory hungry build steps that happen in your dev container builds but only need a fraction of the ram for running your app.
[0] https://barely.dev [1] https://youtu.be/xq0eB8vxeqk