Restarting Container on Schedule with Cron #1589
Answered
by
darrylmorley
darrylmorley
asked this question in
Q&A
-
Hi, I have a container that needs to be restarted every couple of minutes. When I set up a cron job to do this, Caprover starts a new instance upon restart. I then have 2 containers running the same app. Traffic is then forwarded to the new instance that Caprover has created instead of the expected instance that has been restarted. How can I restart my container on schedule without a new instance being created please?
|
Beta Was this translation helpful? Give feedback.
Answered by
darrylmorley
Dec 8, 2022
Replies: 1 comment
-
I think this is solved using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
darrylmorley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is solved using
docker service update <container-name> --force
.#696