Skip to content

Logotype depicting a lighthouse

Watchtower

A container-based solution for automating Docker container base image updates.

Codecov GoDoc Go Report Card latest version Apache-2.0 License Pulls from DockerHub

Overview

Watchtower fork

This is a fork of the really nice project from containrrr called watchtower. I am not the original author of this project. I just forked it to make some changes to it and keep it up-to-date as properly as I can. Contributions, tips and hints are welcome. Just open an issue or a pull request. Please be aware that I am by no means a professional developer. I am just a Platform Engineer.

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 \
beatkind/watchtower
version: "3"
services:
  watchtower:
    image: beatkind/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock