You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ContainerUpdater

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ContainerUpdater

Automate updating Docker images and the containers that use them.

1.3.1
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

ICON

Container Updater

Nuget

Automate updating Docker images and the containers that use them.

Updating Docker images in-place is a surprisingly complex task that requires multiple steps which are both time consuming and error prone if done manually. Container Updater completely automates this process in the simplest way possible (just run it).

Container Updater is available as a .NET Core Global Tool:

dotnet tool install --global ContainerUpdater

The latest version can also be downloaded directly from NuGet.org at: https://www.nuget.org/packages/ContainerUpdater

If you don't have .NET installed you can download the latest version for your operating system here: https://github.com/brutaldev/ContainerUpdater/releases/latest

SCREENSHOT

Options

Dry Run

If you want to see if there are any updates and what will happen but don't want to make any changes you can use the --dry-run option.

ContainerUpdater --dry-run

Interactive Mode

If you want to pause at certain steps and choose which images to update you can use the --interactive mode option.

ContainerUpdater --interactive

Digest Only / Ignore Version Numbers

If you use pinned version numbers and only want to update images with new digests you can use the --digest-only option.

ContainerUpdater --digest-only

Include / Exclude

If you want to include or exclude certain repository names from update checks, you can pass them in as a lists using the organization, image name or full name. Excluding takes precedence over include matches.

# Will exclude images from deventerprisesoftware (https://hub.docker.com/u/deventerprisesoftware) and microsoft/garnet.
ContainerUpdater --exclude deventerprisesoftware garnet

# Include full repository names as well.
ContainerUpdater --include deventerprisesoftware/html2pdf

# Include only images from Microsoft (https://hub.docker.com/u/microsoft).
ContainerUpdater --include microsoft

Remote Host

Instead of connecting to a local Docker instance, you can connect to a remote host instead using the --host option. This needs to be a valid URI.

ContainerUpdater --host tcp://127.0.0.1:2375

Credentials

If your Docker instance (local or remote) requires credentials then you can supply those with the --username and --password options.

ContainerUpdater --username admin --password secret_sauce

How It Works

  • Get all the current image digests and tags to perform a manifest lookup.
  • Lookup latest manifest and check if it matches the current image digest.
  • If not the latest, get the containers that are using the old/existing image and stop them.
  • Inspect and retain the information to re-install containers.
  • Remove the containers using the old image.
  • Remove the old image.
  • Pull the new image.
  • Re-create the containers from previous inspect data.
  • Start the containers if they were previously running.

Alternatives

Watchtower (https://github.com/containrrr/watchtower) and Ouroboros (https://github.com/pyouroboros/ouroboros) are both alternatives that perform the same in-place update. Both these options run as docker containers themselves which actually creates unnecessary complexity. Container Update was created because these options just take too long to setup effectively as well as requiring their own maintenance.

Watchtower Migration/Compatibility

Container Updater is compatible with Watchtower labels so if you have existing containers that were setup with Watchtower labels, Container Updater will respect those labels and only update the containers that are marked for updates.

Running an updater outside of Docker is incredibly simple and requires zero setup. Container Updater also provides the following:

  • No installation or configuration, just double-click.
  • Works on all operating systems regardless of Docker environment.
  • Works with all repositories and manifest versions.
  • Improved/reliable update checks using multiple digest lookups.
  • Automatically use cached authentication on all operating systems including credential helpers.
  • Full restore of containers including all labels and annotations.

TODO

  • Automatically use available cached credentials (cross-platform)
  • Handle automatic token generation for different registries
  • Handle multiple digest checks using different content types
  • Restore all attributes as well (compose groups)
  • Support dry run just to check for and show updates
  • Support adding image names to include/exclude in checks
  • Support selection of images to update (interactive mode)
  • Support updating a remote docker host
  • Export container settings to recover from failures
  • Add cross-platform UI to run in the system tray
  • Deploy as a .NET global tool
  • Write all output to log file
  • Detect version numbers and new version tags
  • Watchtower label compatibility

Keywords

docker

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.