Skip to content
Drydock
GuidesMigrating from Watchtower

Migrating from Watchtower

Replace a Watchtower service with Drydock, convert the labels that have an equal with config migrate, and see which settings still need manual work.

Pre-release docs

These docs cover v1.9, a release candidate that isn't generally available yet. Running the stable release? Read the docs for v1.7.

Why migrate

The original containrrr/watchtower repository was archived on 2025-12-17, and its last release was v1.7.1 in November 2023. On newer Docker Engine releases the image fails with client version 1.25 is too old (containrrr/watchtower#2124). A community fork, nicholas-fedor/watchtower, is still released if you want to stay on Watchtower.

Drydock is the other route. It watches the same Docker socket, but it reports what's available first, and only updates the containers you opt in. The config migrate command converts the labels that have a true Drydock equal and prints a report for everything else.

The smallest replacement

This replaces a Watchtower service that updated every container it could see. Generate a password hash and use it in place of the auth placeholder. In Compose YAML, write each $ in a raw hash as $$. If you're copying a hash that already uses $$ from a Compose file, keep that escaping as written.

services:
  drydock:
    image: codeswhat/drydock:1.9.0-rc.6
    container_name: drydock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./drydock-store:/store
    environment:
      # Poll every 6 hours, like the default. Replaces WATCHTOWER_POLL_INTERVAL.
      - DD_WATCHER_LOCAL_CRON=0 */6 * * *
      # Update every watched container automatically. Replaces a bare Watchtower.
      - DD_ACTION_DOCKER_LOCAL_AUTO=true
      # Remove the old image after an update. Replaces WATCHTOWER_CLEANUP.
      - DD_ACTION_DOCKER_LOCAL_PRUNE=true
      # Without an auth method the dashboard and API stay locked (fail-closed).
      - DD_AUTH_BASIC_ADMIN_USER=admin
      - DD_AUTH_BASIC_ADMIN_HASH=<hash from the quickstart>
    ports:
      - 3000:3000

Drydock's Docker action defaults to AUTO=oninclude, so it only updates containers carrying a dd.action.include label. Setting DD_ACTION_DOCKER_LOCAL_AUTO=true selects every watched container, but it isn't enough on its own. The global update mode defaults to manual, which suppresses automatic updates, and there's no environment variable for it. Sign in, then switch Settings -> General -> Update mode to auto. See update eligibility. Leave AUTO out if you want to start watch-only and opt containers in one at a time. See Docker action for the full list.

Convert your compose files

From the directory containing your Watchtower Compose file, run the migration with the same Drydock image used above. The disposable container mounts the Compose directory and runs as your user so it can write the migrated files. Start with a preview.

docker run --rm --entrypoint node --user "$(id -u):$(id -g)" \
  --mount "type=bind,src=$PWD,dst=/migration" --workdir /migration \
  codeswhat/drydock:1.9.0-rc.6 /home/node/app/dist/index.js config migrate \
  --source watchtower --dry-run --file compose.yaml

Sample output:

DRY-RUN /migration/compose.yaml (env=0, labels=2)
  NOTE /migration/compose.yaml: WATCHTOWER_POLL_INTERVAL has no drydock rewrite because it configures the watchtower service that drydock replaces. See /docs/guides/migrating-from-watchtower for the matching DD_WATCHER_*, DD_ACTION_* and DD_NOTIFICATION_* settings.
  NOTE /migration/compose.yaml: com.centurylinklabs.watchtower.monitor-only has no single drydock label, so it was left as is. To keep a container watch-only, leave it out of dd.action.auto and dd.action.include when the action runs with AUTO=onauto or oninclude, or set dd.action.exclude=<your action>. See /docs/guides/migrating-from-watchtower.
  NOTE /migration/compose.yaml: com.centurylinklabs.watchtower.depends-on was converted to dd.depends_on. Watchtower restarted dependents. Drydock orders updates by dependency inside a batch and updates dependents by default. To restart a dependent instead, set dd.depends_on.action=restart on that dependent, the container that carries dd.depends_on. It is restarted when it is updated together with its dependency in a bulk or dependency-group update, not on every automatic update of the dependency.

Summary: scanned=1, updated=1, missing=0, env_rewrites=0, label_rewrites=2
Watchtower report: converted=2, manual=2 (see NOTE lines above)
Dry-run mode: no files were modified.

When the report looks right, run the same command without --dry-run to write the file. Running it again makes no further rewrites and prints the same manual notes. Lines that can't convert stay exactly as they were.

Labels

Labels use the com.centurylinklabs.watchtower. prefix. The command handles every compose label form (list items, map entries, quoted values) and docker run --label or -l arguments.

Watchtower labelResultDrydock equivalent
enableConvertsdd.watch, value kept
depends-onConvertsdd.depends_on, a leading / is stripped from each name. Watchtower restarted dependents. Drydock orders updates by dependency inside a batch, and its default for dependents is update. Set dd.depends_on.action=restart on the dependent (the container that carries dd.depends_on) to restart it instead. It restarts when it's updated together with its dependency in a bulk or dependency-group update, not on every automatic update of the dependency.
monitor-onlyManualNo per-container label blocks every action without naming it. Leave the container out of dd.action.include (and dd.action.auto under AUTO=onauto) when the action runs AUTO=oninclude or onauto, or set dd.action.exclude to your action's name.
scopeNo equalDrydock has no instance scopes. Set DD_WATCHER_LOCAL_WATCHBYDEFAULT=false and label the containers you want with dd.watch=true, or run a dedicated watcher.
lifecycle.pre-check, pre-update, post-update, post-check and the -timeout labelsNo equaldd.hook.pre and dd.hook.post run inside the Drydock container, not the target, only when DD_HOOKS_ENABLED=true, and are checked against a command grammar and allowlist. Timeouts are in milliseconds. See Lifecycle hooks.
no-pullNo equalLeft as is and reported.
stop-signal and any other labelNo equalLeft as is and reported.

Environment variables

WATCHTOWER_* variables configure the Watchtower service itself, which Drydock replaces. The command never rewrites them. It lists each distinct variable once per file so you can set the Drydock equivalent by hand.

Watchtower variableResultDrydock equivalent
WATCHTOWER_POLL_INTERVAL, WATCHTOWER_SCHEDULEManualDD_WATCHER_LOCAL_CRON, a cron expression (default 0 */6 * * *)
WATCHTOWER_LABEL_ENABLEManualDD_WATCHER_LOCAL_WATCHBYDEFAULT=false, then dd.watch=true on the containers you want
WATCHTOWER_CLEANUPManualDD_ACTION_DOCKER_LOCAL_PRUNE=true
WATCHTOWER_MONITOR_ONLYManualDon't set DD_ACTION_DOCKER_LOCAL_AUTO=true. The default AUTO=oninclude only updates containers that opt in. The global update mode (Settings -> General -> Update mode) is the real watch-only switch: while it is manual or notify, nothing updates automatically.
WATCHTOWER_NO_PULLNo equalReported only.
WATCHTOWER_SCOPENo equalSee scope above.
WATCHTOWER_NOTIFICATION_URL and other notification settingsManualA DD_NOTIFICATION_* trigger per service, such as DD_NOTIFICATION_SLACK_LOCAL_*. For Shoutrrr services without a native trigger, point DD_NOTIFICATION_APPRISE_LOCAL_URL and DD_NOTIFICATION_APPRISE_LOCAL_URLS at an Apprise API. See Notifications.
The names in the Drydock column come from the configuration pages: Watchers, Docker action and Apprise. Check them there for the full option list.

What stays manual

  • Everything marked Manual or No equal above. The report names each label and variable it found, so the list is your checklist.
  • Scheduling, notification URLs, cleanup and monitor-only behavior move from environment variables on the Watchtower service to DD_* variables on Drydock.
  • Lifecycle commands need a rewrite into dd.hook.pre and dd.hook.post, and a decision about whether to enable hooks at all.
  • Stop the Watchtower service once Drydock is running so both don't update the same containers.