Skip to content

Sleep/pause/freeze containers when laptop is sleeping #1822

Closed
@SalvatoreT

Description

@SalvatoreT

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:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions