fix: pin Watchtower DOCKER_API_VERSION for Docker Engine 28+ - #10
Closed
taobojlen wants to merge 1 commit into
Closed
fix: pin Watchtower DOCKER_API_VERSION for Docker Engine 28+#10taobojlen wants to merge 1 commit into
taobojlen wants to merge 1 commit into
Conversation
Watchtower 1.7.1's Docker SDK defaults to Docker API version 1.25, which is too old for Docker Engine 28+. On modern hosts the override fails to talk to dockerd. Pin the API version explicitly via DOCKER_API_VERSION=1.44.
There was a problem hiding this comment.
1 issue found across 1 file
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="docker-compose.override.example.yaml">
<violation number="1" location="docker-compose.override.example.yaml:25">
P2: This override's comment misidentifies the affected daemon version, and the unconditional pin introduces a compatibility regression for Docker Engine 24 and older because those daemons reject client API 1.44 as too new. Correct the version rationale and either preserve negotiation or document/enforce a Docker Engine 25+ prerequisite for this example.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| - WATCHTOWER_LABEL_ENABLE=true # ONLY update opted-in containers — never db | ||
| - WATCHTOWER_POLL_INTERVAL=300 # poll GHCR every 5 min | ||
| - WATCHTOWER_CLEANUP=true # delete old images after updating | ||
| - DOCKER_API_VERSION=1.44 # watchtower 1.7.1's SDK defaults to 1.25, too old for Docker Engine 28+ |
There was a problem hiding this comment.
P2: This override's comment misidentifies the affected daemon version, and the unconditional pin introduces a compatibility regression for Docker Engine 24 and older because those daemons reject client API 1.44 as too new. Correct the version rationale and either preserve negotiation or document/enforce a Docker Engine 25+ prerequisite for this example.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docker-compose.override.example.yaml, line 25:
<comment>This override's comment misidentifies the affected daemon version, and the unconditional pin introduces a compatibility regression for Docker Engine 24 and older because those daemons reject client API 1.44 as too new. Correct the version rationale and either preserve negotiation or document/enforce a Docker Engine 25+ prerequisite for this example.</comment>
<file context>
@@ -22,3 +22,4 @@ services:
- WATCHTOWER_LABEL_ENABLE=true # ONLY update opted-in containers — never db
- WATCHTOWER_POLL_INTERVAL=300 # poll GHCR every 5 min
- WATCHTOWER_CLEANUP=true # delete old images after updating
+ - DOCKER_API_VERSION=1.44 # watchtower 1.7.1's SDK defaults to 1.25, too old for Docker Engine 28+
</file context>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Watchtower 1.7.1's Docker SDK defaults to Docker API version 1.25, which is too old for Docker Engine 28+. On modern hosts the override fails to talk to dockerd.
Pins the API version explicitly via
DOCKER_API_VERSION=1.44in thewatchtowerserviceenvironment:list so the SDK negotiates a supported API version.One-line change to
docker-compose.override.example.yaml; nothing else touched.