Enable auto-upgrades for existing Docker Delegates
Learn how to migrate existing Docker delegates to enable automatic upgrades using the Docker Delegate Upgrader script.
Harness now supports automatic upgrades for Docker delegates using the Docker Delegate Upgrader. If you have already running Docker delegates, you can use the script provided below to enable the upgrader for your delegates.
How It Works
This script performs the following actions:
Identifies Harness delegates with the
DELEGATE_NAMEenvironment variable. If this environment variable is not set, upgrader will not be able to upgrade such delegates.Starts a lightweight upgrader container for each eligible delegate. The script will run one upgrader for every unique value of
DELEGATE_NAMEenvironment variable.Publishes the status of upgrade for every eligible Docker Delegate.
Once run, the upgrader enables periodic checks and automatic updates (if available) for each delegate.
Run the helper Script
Save the following script to a file. Let's say enable-upgrader.sh:
Make the script executable and run it:
chmod +x enable-upgrader.sh
./enable-upgrader.shExample Output
Last updated
Was this helpful?