watchtower: watchtower hooks not working

Hi

I am using pre update hooks in watchtower but the below commands does not even trigger the shell script. Basically i want to skip update based on shell script Also this env variable set WATCHTOWER_LIFECYCLE_HOOKS to true

docker run  -d --label=com.centurylinklabs.watchtower.lifecycle.pre-check="/dump-data.sh" \
--restart always \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--cleanup \
--interval 10 --enable-lifecycle-hooks \
test

Pleae help a bit urgent I am pretty sure the latest watchtower build here https://github.com/containrrr/watchtower supports this skipping update feature

Logs :

time="2021-06-28T15:21:17Z" level=info msg="Watchtower 1.3.0\nUsing no notifications\nOnly checking containers with name \"validator\"\nScheduling first run: 2021-06-28 15:21:27 +0000 UTC\nNote that the first check will be performed in 9 seconds"

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 30 (11 by maintainers)

Most upvoted comments

Yeah, this has not been released yet and is only available for testing in containrrr/watchtower:latest-dev. We don’t have any official date to give you just yet, but it shouldn’t be too long until next release.