Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How can I tell the current installed version of a docker?

Featured Replies

Is there a way to tell what version of a particular docker I currently have installed?  Right now all I can do is restart it and look through the logs while it comes back up.  It would be nice to be able to get this info from the GUI.  Or is there already a way I don't know about?  Thanks.

17 minutes ago, servidude said:

Is there a way to tell what version of a particular docker I currently have installed?  Right now all I can do is restart it and look through the logs while it comes back up.  It would be nice to be able to get this info from the GUI.  Or is there already a way I don't know about?  Thanks.

What are you looking for?  The version of the app installed in the container, or the version of the container?

  • Community Expert

If your looking for the docker engine version, type "docker version" in command line.

It's also in the release notes for the unraid OS every time it is updated, unraid 6.8.3 is on 19.03.5

 

  • Author
31 minutes ago, Squid said:

What are you looking for?  The version of the app installed in the container, or the version of the container?

The version of the container, i.e. the same version I would add to a docker pull command.

Asking since I want to know which version to reinstall if my update breaks things.  Thanks!

According to the docker run command, you're supposed to be able to do it via specifying a digest for the container instead of a tag.  I couldn't however get it to work to reinstall a container via it's digest

 

But, if you're actually worried about it in the first place, then I'd suggest that you don't use :latest as a tag in the first place and tag everything with a specific version.  Alternatively, you can see when the container was created on the docker tab, and then take a fairly good guess as to which tag corresponds to that date and use it if you need to roll back.  I've never had an issue with any container ever updating.  Mind you, I refuse to use Plex since most of their updates to the program is completely broken in the first place.

  • Author

@Squid thanks for the tip!

  • 3 years later...

So this seems still unanswered. I've got a container that has available updates. No where I can see what the current installed version is (same request, in case the updates breaks something, want to be able to roll back). Anyone?

  • 2 months later...

Same question here... Isn't it in the GUI anywhere?

  • 3 months later...
On 4/10/2020 at 5:54 PM, Squid said:

According to the docker run command, you're supposed to be able to do it via specifying a digest for the container instead of a tag.  I couldn't however get it to work to reinstall a container via it's digest

 

But, if you're actually worried about it in the first place, then I'd suggest that you don't use :latest as a tag in the first place and tag everything with a specific version.  Alternatively, you can see when the container was created on the docker tab, and then take a fairly good guess as to which tag corresponds to that date and use it if you need to roll back.  I've never had an issue with any container ever updating.  Mind you, I refuse to use Plex since most of their updates to the program is completely broken in the first place.

 

If it is not recommanded to use "latest" for docker containers, is there a way (maybe plugin?) to use a specific version but also get notified if there is a newer version available?

 

I personally would also like to see the changelog if there is a new version available. Are there any plans to implement such a feature in Unraid?

  • Community Expert

Ok, a lot to review and explain here.

Docker tab Advance toggle

under version is some quick info via the web ui:

image.png.913b587305d2977c64601dea05ee5a08.png

 

If you are using docker, compose and have an update to the version. Unraid can lie as it is using docerkman in the background. To fix this edit the docker compose file. to have a pull policy and a label of:
 

docker_service_name
    pull_policy: always
    restart: always
    labels:
      net.unraid.docker.managed: 'composeman'
      net.unraid.docker.shell: '/bin/sh'


There is a known issue with the docker compose plugin and how unraid detects and claims there is an update.

"The Dockerman system has its own method of storing the current and latest available version of docker images. Compose.Manager does not integrate with Dockerman in this respect"

To update per plugin maintainer:


Use this button.... image.png.9efffe0569a8f3f003ffe1f66529817b.png

 


Next commands to verify docker stuff via unraid web terminal.

"Docker inspect" and "docker pull"

See docker docs:
https://docs.docker.com/reference/cli/docker/container/inspect/
https://docs.docker.com/reference/cli/docker/image/inspect/
https://docs.docker.com/reference/cli/docker/image/pull/

To get the docker version:

https://forums.docker.com/t/how-to-find-out-container-version/98418
docker ps
image.thumb.png.89973e06c7d0af32ff7df7ddaf9140ba.png

docker image inspect ${image id} --format '{{.RepoDigests}}'

Bad example for photoprism:
root@BMM-Unraid:~# docker image inspect photoprism/photoprism --format '{{.RepoDigests}}'
[photoprism/photoprism@sha256:b8dc65e14808021dff7fdb60723fe7e7cd224db1fd356c4e3f1892fa4912e4e4]

Then check the tag and 256 on docker hub...

https://hub.docker.com/r/photoprism/photoprism
https://hub.docker.com/layers/photoprism/photoprism/preview-ce/images/sha256-f894759f8ac3af0ceef82bd8121a1908692567d00de5102d321129274f265fb5?context=explore

Then confirm your 256 with their index digest:
image.png.b740b0d098d7f99d6f8a596f5a14de3b.png

THIS IS A MANUAL CHECK!
The unraid backend script from docker man tries to cross-check this with compose made dockers and breaks...

For this reason unraid has the 
image.png.80da751eb2cc2d98cef3621efcde0f97.png

This just pulls the dockers repositories.

Otherwise one can use User script plugin:
https://github.com/BrooksPatton/update-all-docker-images/blob/master/docker-images-update.sh
which essentials grabs all the images and runs the docker pull command...

BUT THIS WILL ONLY WORK FOR UNRAID INSTALLED DOCKERS, NOT COMPOSE!

This is due to how the compose plugin works and how unraid is using docker man as its underline Damon to run dockers...

There are talks with feature request to support and use docker compose and also support with docker podman.

So if you have a docker made form compose and its saying it has an update, Its a false positive in unraids docerkman update check script....
Neither the compose plugin nor unriad take responsibility due to how they are implemented... (in which case you have the other button to update compose dockers...)

Otherwise, if its not compose.
Sometimes Unraid also has a hiccup and docker images need to be pruned and or become dangling images...
You may need to click the docker and remove it and its image. (or click advance and remove the orphan dangling images)
image.png.3f8a31f6d9a50884710a0013efcaa795.png

I hope this helps in understanding the docker update processes.

Edited by bmartino1

  • 1 year later...

To get exact date of installation:
Flash/config/plugins/dockerMan/templates-user and open the my-containerName.xml. Date Installed in in Epoch format.
Note: does not seem to get re-stampted with updates, except maybe if update fails for whatever reason and you re-install with fixed parameters (speculation).

  • 5 months later...

My use case is dockers from the CA store.

So even under Advanced view there is no way to see the current version and the target version for the update. So I can't tell if this is a minor or major update prior to updating.

Is that right?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.