Skip to content

How do I schedule watchtower to run updates using cron expressions? #579

Answered by tammert
oxy-32 asked this question in Q&A
Discussion options

You must be logged in to vote

It's working for me with the following docker-compose.yaml:

version: "3"

services:
  watchtower:
    container_name: watchtower
    restart: always
    environment:
      WATCHTOWER_SCHEDULE: 0 0 4 * * *
      TZ: Europe/Brussels
      WATCHTOWER_CLEANUP: "true"
      WATCHTOWER_DEBUG: "true"
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

From your given YAML, I had to change:

  • = to : for CLEANUP and DEBUG
  • double-quote the true values

How are you running this? I would expect you to see the same errors I'm seeing...

Replies: 5 comments 4 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
@oxy-32
Comment options

@tammert
Comment options

@casperfrost
Comment options

@dro-ex
Comment options

Answer selected by tammert
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #579 on June 14, 2020 21:35.