mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
feat: add timeout override for pre-update lifecycle hook
This commit is contained in:
parent
7e7d4bf9ce
commit
1d1c630f7a
7 changed files with 89 additions and 24 deletions
|
@ -46,6 +46,19 @@ docker run -d \
|
|||
--label=com.centurylinklabs.watchtower.lifecycle.post-check="/send-heartbeat.sh" \
|
||||
```
|
||||
|
||||
### Timeouts
|
||||
The timeout for all lifecycle commands is 60 seconds. After that, a timeout will
|
||||
occur, forcing Watchtower to continue the update loop.
|
||||
|
||||
#### Pre-update timeouts
|
||||
|
||||
For the `pre-update` lifecycle command, it is possible to override this timeout to
|
||||
allow the script to finish before forcefully killing it. This is done by adding the
|
||||
label `com.centurylinklabs.watchtower.lifecycle.pre-update-timeout` followed by
|
||||
the timeout expressed in minutes.
|
||||
|
||||
If the label value is explicitly set to `0`, the timeout will be disabled.
|
||||
|
||||
### Execution failure
|
||||
|
||||
The failure of a command to execute, identified by an exit code different than
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue