This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Description
Is your feature request related to a problem? Please describe.
The docs say the following:
The failure of a command to execute, identified by an exit code different than 0 or 75 (EX_TEMPFAIL), will not prevent watchtower from updating the container. Only an error log statement containing the exit code will be reported.
From this I understand that there is no way to prevent an update if a hook fails.
Reading this issue: #499 and the code in: https://github.com/containrrr/watchtower/blob/36391b0ae791ef9a451fd63b34b117689f6248eb/internal/actions/update.go#L158-167
Seems to say otherwise, if the pre-update hook has an exit code different than 0 it will stop and not update the container, the opposite of the docs.
Which is correct?
Describe the solution you'd like
Make code and docs consistent or more clear
Describe alternatives you've considered
none here
Additional context
No response