harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Updating container / tool / service versions?

Open ahundt opened this issue 9 months ago • 4 comments

Is there a straightforward and easy way for users to try updating containers and reverting those updates, or to jump to the latest? Particularly if there are ways to go back to the safe tested defaults harbor supplies.

For example, the current harbor openwebui is 0.6.7 and the latest release is 0.6.9. This is similarly true for others like openhands where there have been some significant fixes recently.

I checked locations I thought would be relevant in the wiki but mentions of updates concerned updating harbor itself, rather than the packages: https://github.com/av/harbor/wiki/3.-Harbor-CLI-Reference https://github.com/av/harbor/wiki

Thanks!

ahundt avatar May 11 '25 21:05 ahundt

Hi, thanks for trying out Harbor and for your recent reports!

Harbor's service version strategy is to use latest version until the service is known too break too often or require manual patching to update.

In all service wikis, the "Starting" section's first command outlines how service can be updated.

Typically it's either

harbor build <service>

or

harbor pull <service>

When building, sometimes you'll want to use --no-cache to rebuild from scratch.

Many services that use pull will also allow to specify docker image and image tag to use manually (see configs for the specific service)

av avatar May 15 '25 06:05 av

For example, for the Open WebUI:

# List Open WebUI-related configs
harbor config ls | grep WEBUI

WEBUI_HOST_PORT                33801
WEBUI_SECRET                   h@rb0r
WEBUI_NAME                     Harbor
WEBUI_LOG_LEVEL                INFO
WEBUI_VERSION                  main
WEBUI_IMAGE                    ghcr.io/open-webui/open-webui

# 1. Change to a custom image
harbor config set webui.image private.registry.io/open-webui
# 2. Change desired docker tag
harbor config set webui.version latest

You can see that by default WEBUI_VERSION is main which is analagous to latest in Open WebUI's labelling scheme. So, to update it, you'll need to run:

harbor pull webui

av avatar May 17 '25 09:05 av

There is a specific failure in openhands I was hoping to test with an update.

https://github.com/All-Hands-AI/OpenHands/issues/8317

ahundt avatar May 18 '25 21:05 ahundt

That can be set with:

harbor config set openhands.version main

And then rebuild/restart for new image to take place

av avatar May 19 '25 00:05 av