How to Migrate from Containrrr to Nick Fedor's Watchtower?
Asked by
CuriousCoder92
I've been using Watchtower from containrrr, but since it's no longer maintained, I want to switch to the fork created by Nicholas Fedor. Can someone explain the steps for migrating? Do I just need to replace 'containrrr' with 'nickfedor/watchtower' in my Docker Compose file? Here's a snippet of my current setup: version: "3.8"
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
Answers
Yes, you should just replace 'containrrr' with 'nickfedor/watchtower' in your Compose file. After making the change, remember to run 'docker compose down' to stop your current container, and then 'docker compose up -d' to start the new one.
Reply to this answer
Actually, it's not necessary to bring everything down before the change. Just updating the service definition in your Compose file and running 'docker compose up -d' will recreate the container automatically. A little easier than doing a full teardown!
Reply to this answer
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions