Knowledgebase

How to Auto-Update Docker Containers with Watchtower Print

  • 0

Keep self-hosted tools patched automatically on a schedule.

Step-by-Step Instructions

  1. Run Watchtower with --cleanup and a daily schedule.
  2. Limit Watchtower to labeled containers for production safety.
docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --cleanup --schedule '0 0 4 * * *'

Pro Tip: Avoid auto-updating major database versions blindly—pin DB major tags like postgres:16.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back