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

Can the container cron wake up the host? #24

Closed
bradbulger opened this issue Jan 18, 2023 · 2 comments
Closed

Can the container cron wake up the host? #24

bradbulger opened this issue Jan 18, 2023 · 2 comments

Comments

@bradbulger
Copy link

If the host machine is asleep, what is the state of the container? Is it suspended, or can cron still execute at a given clock time? I would like to run this when I'm not actively using the machine but when I'm not using it, it goes to sleep. Thanks.

@selim13
Copy link
Owner

selim13 commented Jan 18, 2023

During the sleep mode, all processes of your PC will stop, including docker and it's containers. So cron will be suspended as well.

@bradbulger
Copy link
Author

That's how I thought it worked. So I might be able to put a docker exec command in the host's own cron file, which might be able to wake it up, but nothing in the containers is going to affect that.

@selim13 selim13 closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants