0217e116c4
* Added HTTP API trigger to update running images * Adds HTTP API authentication token parameter and handling * Exposes port 8080 in Dockerfile to allow inter-container update triggering via HTTP API * Fixes codacy issue * Adds API usage doc * Fix grammar * Moves api logic to a package of its own * Makes WT exit if token has not been set in HTTP API mode * Adds lock to prevent concurrent updates when in HTTP API mode Co-authored-by: Simon Aronsson <simme@arcticbit.se> |
5 years ago | |
---|---|---|
.circleci | 5 years ago | |
.github | 5 years ago | |
cmd | 5 years ago | |
dockerfiles | 5 years ago | |
docs | 5 years ago | |
internal | 5 years ago | |
pkg | 5 years ago | |
scripts | 5 years ago | |
.all-contributorsrc | 5 years ago | |
.codacy.yml | 6 years ago | |
.gitignore | 6 years ago | |
CODE_OF_CONDUCT.md | 6 years ago | |
CONTRIBUTING.md | 5 years ago | |
LICENSE.md | 7 years ago | |
README.md | 5 years ago | |
go.mod | 5 years ago | |
go.sum | 5 years ago | |
goreleaser.yml | 5 years ago | |
main.go | 5 years ago | |
mkdocs.yml | 5 years ago |
README.md
Watchtower
A process for automating Docker container base image updates.
โ ๏ธ Help needed
As I @simskij currently am the sole maintainer of watchtower, i'm finding it a bit hard to keep up with all issues and pull requests. Interested in helping out with triage, troubleshooting and issue handling? Let me know on gitter!
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.github.io/watchtower.
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!