Skip to content
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

Feature Request: Ability to halt the container #212

Open
Svenum opened this issue Oct 10, 2023 · 9 comments
Open

Feature Request: Ability to halt the container #212

Svenum opened this issue Oct 10, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@Svenum
Copy link

Svenum commented Oct 10, 2023

I want just halt the container for faster wake up times. Maybe with a setting in sablier.yaml?
This should save CPU + its fast up and running.

@acouvreur
Copy link
Owner

acouvreur commented Oct 10, 2023

The underlying action for docker is the equivalent of docker start and docker stop.

By halting containers, do you mean using the docker pause command ?

https://docs.docker.com/engine/reference/commandline/pause/

Do you have more details on how you'd it manually ? This would be helpful understanding this process.

For now, this is not an available option, but can be added to.

@acouvreur acouvreur added the enhancement New feature or request label Oct 10, 2023
@Svenum
Copy link
Author

Svenum commented Oct 10, 2023

Right I want to use docker pause and docker unpause instead of docker stop and docker start

@acouvreur
Copy link
Owner

Can you give me more details on the use case ? Out of curiosity.

Because the memory is not discarded and the process are frozen.

What's the use case that you need to unpause containers to boot very fast ?

@Svenum
Copy link
Author

Svenum commented Oct 11, 2023

In my mind are services like jellyfin or Nextcloud witch clients dont wait that long. After the timeout they force you to reenter the server name.

@valexz
Copy link
Contributor

valexz commented Oct 11, 2023

It appears that the command docker checkpoint should be taken into consideration
https://docs.docker.com/engine/reference/commandline/checkpoint/

@Svenum
Copy link
Author

Svenum commented Oct 15, 2023

I do not want to do a snapshot I want to stop the container without the need to start everything on need. I want to reduce CPU Usage and a fast startup. So I do not think that docker checkpoint is what we need here.

@Svenum
Copy link
Author

Svenum commented Oct 22, 2023

Some news on this?

@acouvreur
Copy link
Owner

I don't have the time to work on this, feel free to open a pull request if you want :)

Copy link

github-actions bot commented Feb 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Feb 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
@acouvreur acouvreur reopened this Mar 15, 2024
@github-actions github-actions bot removed the Stale label Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants