Skip to content

Installation

Sources

Container Image

Binary

CLI Commands

Pulling the Container Image

docker pull ghcr.io/sidneyojr/watchtower:latest
docker pull ghcr.io/sidneyojr/watchtower:latest

Downloading the Binary

The following will download and extract the binary to the current directory:

PowerShell
iwr (iwr https://api.github.com/repos/sidneyojr/watchtower/releases/latest | ConvertFrom-Json).assets.where({$_.name -like "*windows_amd64*.zip"}).browser_download_url -OutFile watchtower.zip; Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip = [System.IO.Compression.ZipFile]::OpenRead("$PWD\watchtower.zip"); $zip.Entries | Where-Object {$_.Name -eq 'watchtower.exe'} | ForEach-Object {[System.IO.Compression.ZipFileExtensions]::ExtractToFile($_, "$PWD\watchtower.exe", $true)}; $zip.Dispose(); Remove-Item watchtower.zip; if (Test-Path ".\watchtower.exe") { Write-Host "Successfully installed watchtower.exe to current directory" } else { Write-Host "Failed to install watchtower.exe" }
Bash
curl -L $(curl -s https://api.github.com/repos/sidneyojr/watchtower/releases/latest | grep -o 'https://[^"]*linux_amd64[^"]*\.tar\.gz') | tar -xz -C . watchtower && if [ -f ./watchtower ]; then echo "Successfully installed watchtower to current directory"; else echo "Failed to install watchtower"; fi
Bash
curl -L $(curl -s https://api.github.com/repos/sidneyojr/watchtower/releases/latest | grep -o 'https://[^"]*darwin_amd64[^"]*\.tar\.gz') | tar -xz -C . watchtower && if [ -f ./watchtower ]; then echo "Successfully installed watchtower to current directory"; else echo "Failed to install watchtower"; fi

Note

Review the release page for additional architectures (e.g., arm, arm64, i386, riscv64).

Supported Architectures

Watchtower supports the following architectures:

  • amd64
  • i386
  • armhf
  • arm64v8
  • riscv64