Skip to content

Watchtower restarting every minute, not updating any containers, nothing happens? #824

Answered by stffabi
joq3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The problem seems to be related to the --rm flag, it's a flag that is not supported by watchtower.

{"log":"Incorrect Usage. flag provided but not defined: -rm\n","stream":"stdout","time":"2017-11-08T07:29:31.397819155Z"}

I think you wanted to pass it to docker, therefore your command should look like this.

sudo docker run -d -v /var/run/docker.sock:/var/run/docker.sock --rm --restart unless-stopped --name watchtower v2tec/watchtower --cleanup --schedule "0 0 4 * * *"

All behind the image name will be passed as command line parameters to watchtower.

Your cron expressions looks good for 4AM, it's in 24H format, see

Replies: 8 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by simskij
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@piksel
Comment options

@antgustech
Comment options

@piksel
Comment options

@antgustech
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #109 on February 15, 2021 07:28.