-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sleep/pause/freeze containers when laptop is sleeping #1822
Comments
A number of engineers on our team have also reported similar experiences of waking up to a dead battery and Activity Monitor pointing the finger at Orbstack. Here's an
Some attempted fixes that have been unsuccessful :
We have reports of this happening on Orbstack versions as early as 1.8.2, but primarily engineers are on 1.9.x branches. |
This is odd as apps aren't normally allowed to run much during sleep on Apple Silicon Macs. Have you seen OrbStack using 100% CPU during the day? |
Here's my
|
As an experiment, here's a build that pauses containers during sleep: https://cdn-updates.orbstack.dev/exp/OrbStack_v1.10.3-15-g85ec3ac17_19098_arm64.dmg There are a few issues preventing this from being production-ready, but let me know if it helps. |
I just got back today and I'll test it out! |
Is your feature request related to a problem? Please describe.
At the end of the work day, I close my laptop, and when I open it again the following morning, the battery is usually at 1% or totally dead.
It appears that my Docker Containers continue running through the night even though my laptop is closed and should be asleep. Here's a screenshot from the morning:
Describe the solution you'd like
When the laptop is closed, I'd like for the containers to suspend/freeze/pause or basically stop computing.
Describe alternatives you've considered
Obviously, I could
docker compose down
at the end of the work day. I like the experience of being able to open my laptop and start development without having to remember setup incantations.The text was updated successfully, but these errors were encountered: