Skip to main content

Watchtower - Image updater

Introduction

Watchtower is a Docker container management tool that automates the process of updating running Docker containers. It constantly monitors your Docker images and automatically pulls updated versions from the Docker registry, stops the existing containers, and starts the new ones with the latest versions. This documentation provides an overview of Watchtower, including its description, image build commands, and useful tips and tricks.

Description

Watchtower simplifies the management of Docker containers by streamlining the update process. It eliminates the need for manual intervention, allowing you to focus on other tasks while ensuring that your containers are always up to date with the latest versions available. Watchtower is an open-source project and offers a reliable solution for automating container updates in your Docker environment.

Code Snippet

version: '3'
services:
  watchtower:
    image: containrrr/watchtower
    command:
      - --interval=12h
      - --cleanup=true
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock