Skip to content

docs: Revise watchtower page and adapt to community fork (#4641)#50

Merged
scristian71 merged 1 commit intoscristian71:masterfrom
docker-mailserver:master
Jan 25, 2026
Merged

docs: Revise watchtower page and adapt to community fork (#4641)#50
scristian71 merged 1 commit intoscristian71:masterfrom
docker-mailserver:master

Conversation

@scristian71
Copy link
Copy Markdown
Owner

  • docs: Revise watchtower page and adapt to community fork

  • docs: Use the GHCR registry for watchtower

  • chore: Update CHANGELOG.md

Description

Fixes #

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change that does improve existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary, I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added information about changes made in this PR to CHANGELOG.md

* docs: Revise `watchtower` page and adapt to community fork

* docs: Use the GHCR registry for `watchtower`

* chore: Update `CHANGELOG.md`
Copilot AI review requested due to automatic review settings January 25, 2026 08:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the watchtower documentation to migrate from the unmaintained original project (containrrr/watchtower) to a maintained community fork (nicholas-fedor/watchtower). The documentation is revised to use the new image registry (GHCR) and includes updated links to the community fork's documentation.

Changes:

  • Updated watchtower image reference from containrrr/watchtower to ghcr.io/nickfedor/watchtower
  • Revised and expanded documentation with clearer explanations of watchtower behavior
  • Added info box explaining the unmaintained status of the original project and the community fork
  • Updated all documentation links to point to the community fork's documentation site

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
docs/content/config/advanced/maintenance/update-and-cleanup.md Comprehensive revision of watchtower documentation, migrating references from the original unmaintained project to the community fork, with expanded explanations and updated links
CHANGELOG.md Added entry documenting the migration to the community fork in the Updated/Documentation section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```

!!! tip "The image tag used for a container is monitored for updates (eg: `:latest`, `:edge`, `:13`)"
The `watchtower` container can use the [`WATCHTOWER_CLEANUP=true` ENV (CLI option: `--cleanup`)][watchtower-docs::cleanup] to enable automatic cleanup (removal) of the previous image used for container it updates. Removal occurs after the container is restarted with the new image pulled.
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar error: "for container it updates" is missing an article. Should be "for each container it updates" or "for the container it updates".

Suggested change
The `watchtower` container can use the [`WATCHTOWER_CLEANUP=true` ENV (CLI option: `--cleanup`)][watchtower-docs::cleanup] to enable automatic cleanup (removal) of the previous image used for container it updates. Removal occurs after the container is restarted with the new image pulled.
The `watchtower` container can use the [`WATCHTOWER_CLEANUP=true` ENV (CLI option: `--cleanup`)][watchtower-docs::cleanup] to enable automatic cleanup (removal) of the previous image used for each container it updates. Removal occurs after the container is restarted with the new image pulled.

Copilot uses AI. Check for mistakes.
By default the `watchtower` service will check every 24 hours for new image updates to pull, based on currently running containers (_**not restricted** to only those running within your `compose.yaml`_).

Images eligible for updates can configured with a [custom `command`][docker-docs-compose-command] that provides a list of container names, or via other supported options (eg: labels). This configuration is detailed in the [`watchtower` docs][watchtower-docs].
Images eligible for updates can configured with a [custom `command`][docker-docs::compose-command] that provides a list of container names, alternatively via [container labels to monitor only specific containers][watchtower-docs::monitor-labels] (_or instead exclude specific containers from monitoring_).
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar error: "Images eligible for updates can configured" is missing "be". Should be "Images eligible for updates can be configured".

Suggested change
Images eligible for updates can configured with a [custom `command`][docker-docs::compose-command] that provides a list of container names, alternatively via [container labels to monitor only specific containers][watchtower-docs::monitor-labels] (_or instead exclude specific containers from monitoring_).
Images eligible for updates can be configured with a [custom `command`][docker-docs::compose-command] that provides a list of container names, alternatively via [container labels to monitor only specific containers][watchtower-docs::monitor-labels] (_or instead exclude specific containers from monitoring_).

Copilot uses AI. Check for mistakes.
- Omit the minor or patch portion of the semver tag to receive updates for the omitted portion (_eg: `13` will represent the latest minor + patch release of `v13`_).
---

The tag for an image is never modified by `watchtower`, instead `watchtower` monitors the image digest associated to that image tag (_which will change to a new image digest if a new image release reassigns the tag_), when the digest for the tag changes this triggers a pull of the new image.
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is a run-on sentence with multiple independent clauses joined only by commas. Consider breaking it into multiple sentences or using proper conjunctions. For example: "The tag for an image is never modified by watchtower. Instead, watchtower monitors the image digest associated to that image tag (which will change to a new image digest if a new image release reassigns the tag). When the digest for the tag changes, this triggers a pull of the new image."

Suggested change
The tag for an image is never modified by `watchtower`, instead `watchtower` monitors the image digest associated to that image tag (_which will change to a new image digest if a new image release reassigns the tag_), when the digest for the tag changes this triggers a pull of the new image.
The tag for an image is never modified by `watchtower`. Instead, `watchtower` monitors the image digest associated with that image tag (_which will change to a new image digest if a new image release reassigns the tag_). When the digest for the tag changes, this triggers a pull of the new image.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to 19
image: ghcr.io/nickfedor/watchtower:latest
# Automatic cleanup:
environment:
- WATCHTOWER_CLEANUP=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the third-party ghcr.io/nickfedor/watchtower:latest image while mounting the host’s /var/run/docker.sock and relying on the mutable latest tag introduces a significant supply-chain risk. If the image registry or tag is ever compromised, a malicious image could be pulled and run with broad control over all Docker containers (and potentially the host). To reduce this risk, document this example using a trusted image reference pinned to a specific version or immutable digest and recommend a safe update process instead of :latest.

Copilot uses AI. Check for mistakes.
@scristian71 scristian71 merged commit f6ac6c2 into scristian71:master Jan 25, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants