watchtower/pkg/container
yrien30 145fe6dbcb
Pre-update lifecycle hook (#793)
* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code
#649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Make watchtower skip update if pre-update lifecycle hook exits with a non-zero exit code #649

* Prevent starting new container if old one is not stopped because of lifecycle hook.

* Add null check for c.containerInfo.State in IsRunning

* Fixed that the container would not start

* Added test for preupdate

* EX_TEMPFAIL -> ExTempFail

* Added missing fuction ouput names

* Skip preupdate when container is restarting.
2021-06-24 00:36:33 +02:00
..
mocks Allow watchtower to update rebooting containers (#651) 2020-11-19 19:03:17 +01:00
client.go Pre-update lifecycle hook (#793) 2021-06-24 00:36:33 +02:00
container.go Pre-update lifecycle hook (#793) 2021-06-24 00:36:33 +02:00
container_suite_test.go fix: merge artifacts and broken shoutrrr tests (#929) 2021-04-24 15:42:31 +02:00
container_test.go feat: check container config before update (#925) 2021-04-24 18:29:05 +02:00
errors.go feat: check container config before update (#925) 2021-04-24 18:29:05 +02:00
metadata.go Monitor-only for individual containers (#652) 2020-10-03 22:00:02 +02:00
util.go feat(log): use short image/container IDs in logs (#888) 2021-04-18 18:34:38 +02:00
util_test.go feat(log): use short image/container IDs in logs (#888) 2021-04-18 18:34:38 +02:00