Skip to content

Updating systemd docker containers #1100

Discussion options

You must be logged in to vote

nevermind...figured it out.
For anyone else stumbling here to find a way, here's what i did
systemd is running docker start and stop commands and is set to RestartSec=60s
that gives enough time for watchtower to update any container
i have set the following flag in watchtower WATCHTOWER_ROLLING_RESTART=true
so, watchtower pulls a new image, stops a container, and restarts it automatically.
then after 60 sec, systemd executes "ExecStart=docker start -a container" and hooks onto the running container...there's no problem if the container is running by watchtower.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simskij
Comment options

@dersimn
Comment options

Answer selected by milindpatel63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants