Re:Freeze Docker containers on laptop to save power
by muhammadn on Friday March 20, 2026 @11:52AM
(#47456371)
The other solutions includes using scripts or systemd and i felt a docker plugin would make it more easier than everyone using their own custom scripts or adding some systemd voodoo.
I wrote this because i was frustrated at Linux boot times when i forgot to stop all my running containers and excessive use of power when i forgot (or often negelect) my running docker containers.
Re:Freeze Docker containers on laptop to save power
by jbverschoor on Friday March 20, 2026 @11:58AM
(#47456479)
I had similar issues about not stopping them. What I did for my sandboxing scripts was terminate the docker when no sessions were alive anymore. However, it still drains power when you’re actively using it (ssh, vscode).
I wrote this because i was frustrated at Linux boot times when i forgot to stop all my running containers and excessive use of power when i forgot (or often negelect) my running docker containers.
https://github.com/jrz/container-shell