Skip to content

Running Watchtower to automatically update container base images? #4586

Answered by Cellane
louwers asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I think I can tackle this one!

So when I was researching Watchtower a long while back (meaning, something might have changed since then), it worked by pulling a new image from Docker registry and restarting the running container with a new image. Assuming you’re deploying your Docker images with Dokku’s git:from-image command (or formerly tags:deploy), that’s not what you want to be doing – you would want upon detection of an updated upstream image to run an appropriate Dokku command to deploy that image, but alas, I don’t think Watchtower can run a custom command once it detects an image.

That leaves you with two options that I’m aware of.

The first one would be to use a different…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josegonzalez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants