Comments (6)
It seems like you would be better off using https://github.com/crazy-max/diun instead. The core of watchtower is implemented using communication with the docker service, requiring to pull the images. You could talk directly to the docker registries instead, but that would be a wholly different code path that just isn't implemented.
from watchtower.
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏
from watchtower.
I have the same Problem.
It is explained in the documentation:
"Due to Docker API limitations the latest image will still be pulled from the registry. The HEAD digest checks allows watchtower to skip pulling when there are no changes, but to know what has changed it will still do a pull whenever the repository digest doesn't match the local image digest."
Watchtower says that the minimum Docker-API version is 1.24 but the latest API version is currently 1.43
Maybe the behavior has changed since the documentation was written?
from watchtower.
@obzocker I'm not sure what you mean... The docs explain why it's pulling the image. There could be code added that would skip the pulling for monitor-only, but it's not an easy fix.
from watchtower.
@piksel I understand why this is the expected behaviour but it is still a problem.
Watchtower still makes changes in monitor-only mode, which messes up the tags of already started containers.
You loose easy access to metadata when using watchtower with e.g. Portainer. The started container does no longer show the associated tag but the short hash. This is very confusing for people who only do maintenance on these systems.
Furthermore as described by @luweijun1992 you loose reproducibility when you e.g. change a small detail in a stack/compose.
e.g. in Portainer you have the option to change the stack but NOT repull and redeploy the images. If watchtower has already pulled the image in through the monitor-only mode the stack still gets updated which is not desirable.
Is there an easier way to check for a new Docker image without pulling it directly, perhaps due to changes in the Docker API?
from watchtower.
This problem is exacerbated by the systemd timer on my host that periodically restarts containers. And, though I don't run many containers, nor have I been running them for long, I already had 2 cases where manual intervention was required to fix a problem after an image update.
Therefore, I'll be switching to duin. Thanks a lot @piksel for pointing me to that 👍!
from watchtower.
Related Issues (20)
- Not properly applying container.networks.mac_address gives random MAC HOT 4
- Nextcloud All-In-One fails to update, watchtover segfaults? HOT 8
- WatchTower Metrics: Add HOT 3
- Feature Req: Ability to selectively configure data to send via notification on a per service (or even per class within a service)
- Improved integration of Watchtower web interface with cronjob management HOT 1
- Avoid repeated notifications (of available updates) when using Watchtower in "monitor only" mode HOT 1
- Single watchtower instance for multiple remote hosts? HOT 7
- Remove/Delete old image after successful update HOT 1
- REQUEST: label to cleanup images by container
- Can't filter logs by level in template (Incompatible types for comparison) HOT 1
- Cannot send notification using smtp: timed out HOT 3
- slack WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER not being used HOT 1
- Could not do a head request for ......... HOT 7
- SMTP timeout with Zoho and Mailjet (except at start) HOT 1
- Error Handling when running out of Disk Space HOT 1
- Watchtower not applying docker-compose `configs:` after update HOT 7
- Recreation via docker compose after update HOT 1
- Microsoft Teams Connector Webhooks are being replaced by Microsoft Flow HOT 3
- Container does not get updated HOT 7
- Images retention options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchtower.