A process for automating Docker container base image updates. https://containrrr.dev/watchtower/
Find a file
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
.devbots add automatic issue locking 2020-04-25 21:56:57 +02:00
.github test: fix metrics api test stability (#930) 2021-05-25 16:42:11 +02:00
cmd * feat: custom user agent (#990) 2021-06-11 19:23:00 +02:00
dockerfiles chore(ci): fix default branch in Dockerfiles (#875) 2021-04-01 19:18:36 +02:00
docs Pre-update lifecycle hook (#793) 2021-06-24 00:36:33 +02:00
grafana Prometheus support (#450) 2021-01-06 22:28:32 +01:00
internal Pre-update lifecycle hook (#793) 2021-06-24 00:36:33 +02:00
pkg Pre-update lifecycle hook (#793) 2021-06-24 00:36:33 +02:00
prometheus Prometheus support (#450) 2021-01-06 22:28:32 +01:00
scripts feat: make head pull failure warning toggleable (#912) 2021-04-23 16:34:21 +02:00
.all-contributorsrc docs: add zenjabba as a contributor (#983) 2021-06-07 15:45:57 +02:00
.codacy.yml exclude markdown files from coverage analysis 2019-04-17 21:44:31 +02:00
.gitignore add http head based digest comparison to avoid dockerhub rate limits 2020-12-06 13:21:04 +01:00
build.sh * feat: custom user agent (#990) 2021-06-11 19:23:00 +02:00
code_of_conduct.md Create code_of_conduct.md 2020-06-24 12:21:56 +02:00
CONTRIBUTING.md Fix typos (#554) 2020-05-29 10:59:52 +02:00
docker-compose.yml Prometheus support (#450) 2021-01-06 22:28:32 +01:00
go.mod fix: merge artifacts and broken shoutrrr tests (#929) 2021-04-24 15:42:31 +02:00
go.sum feat: update shoutrrr to v0.4.4 (#914) 2021-04-23 16:36:09 +02:00
gopher-watchtower.png add logo to repo 2020-05-01 13:13:14 +02:00
goreleaser.yml * feat: custom user agent (#990) 2021-06-11 19:23:00 +02:00
LICENSE.md Possibility to disable the TLS verify for sending mails. 2018-02-27 01:23:28 +01:00
logo.png Add files via upload 2020-06-22 19:41:09 +02:00
main.go fix: remove linting issues 2019-07-22 12:10:57 +02:00
mkdocs.yml Documentation updates (#936) 2021-04-27 11:34:24 +02:00
README.md docs: add zenjabba as a contributor (#983) 2021-06-07 15:45:57 +02:00
SECURITY.md Create SECURITY.md 2021-04-21 10:01:33 +02:00

Watchtower

A process for automating Docker container base image updates.

Circle CI codecov GoDoc Microbadger Go Report Card latest version Apache-2.0 License Codacy Badge All Contributors Pulls from DockerHub

Quick Start

With watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker Hub or your own image registry. Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially. Run the watchtower container with the following command:

$ docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower

Documentation

The full documentation is available at https://containrrr.dev/watchtower.

Contributors

Thanks goes to these wonderful people (emoji key):


James

⚠️ 🤔

Florian

👀 📖

Brian DeHamer

💻 🚧

Ross Cadogan

💻

stffabi

💻 🚧

Austin

📖

David Gardner

👀 📖

Tanguy ⧓ Herrmann

💻

Rodrigo Damazio Bovendorp

💻 📖

Ryan Kuba

🚇

cnrmck

📖

Harry Walter

💻

Robotex

📖

Gerald Pape

📖

fomk

💻

Sven Gottwald

🚇

techknowlogick

💻

waja

📖

Scott Albertson

📖

Jason Huddleston

📖

Napster

💻

Maxim

💻 📖

Max Schmitt

📖

cron410

📖

Paulo Henrique

📖

Kaleb Elwert

📖

Bill Butler

📖

Mario Tacke

💻

Mark Woodbridge

💻

Simon Aronsson

💻 🚧 👀 📖

Ansem93

📖

Luka Peschke

💻 📖

Zois Pagoulatos

💻 👀 🚧

Alexandre Menif

💻

Andrey

📖

Armando Lüscher

📖

Ryan Budke

📖

Kaloyan Raev

💻 ⚠️

sixth

📖

Gina Häußge

💻

Max H.

💻

Jungkook Park

📖

Jan Kristof Nidzwetzki

📖

lukas

💻

Ameya Shenoy

💻

Raymon de Looff

💻

John Clayton

💻

Germs2004

📖

Lukas Willburger

💻

Oliver Cervera

📖

Victor Moura

⚠️ 💻 📖

Maximilian Brandau

💻 ⚠️

Andrew

📖

sixcorners

📖

nils måsén

📖 💻

Arne Jørgensen

⚠️ 👀

PatSki123

📖

Valentine Zavadsky

💻 📖 ⚠️

Alexander Voronin

💻 🐛

Oliver Mueller

📖

Sebastiaan Tammer

💻

miosame

📖

Andrew Metzger

🐛 💡

Pierre Grimaud

📖

Matt Doran

📖

MihailITPlace

💻

bugficks

💻 📖

Michael

💻

D. Domig

📖

Ben Osheroff

💻

David H.

💻

Chander Ganesan

📖

yrien30

💻

ksurl

📖 💻

rg9400

💻

Turtle Kalus

💻

Srihari Thalla

📖

Thomas Gaudin

📖

hydrargyrum

📖

Reinout van Rees

📖

DasSkelett

💻

zenjabba

📖

This project follows the all-contributors specification. Contributions of any kind welcome!