How can I get the current DMS version? #3736
Answered
by
polarathene
vahidalvandi
asked this question in
Q&A
-
|
I want to get the current version of DMS, how do I find out? |
Beta Was this translation helpful? Give feedback.
Answered by
polarathene
Jan 1, 2024
Replies: 1 comment
-
|
This question implies you're not using an image tag, that is bad. You want to make this clear by using an image tag, especially since major versions have breaking changes and if you pull a newer major version accidentally (or on a new system) you might experience breakage with a config that previously worked fine. So include the version you want/use as the tag:
# On a running container:
$ docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.version"}}' container_name
v13.1.0
# On the image (optionally with tag):
$ docker inspect --format '{{ index .Config.Labels "org.opencontainers.image.version"}}' mailserver/docker-mailserver
v13.1.0
# Check on a running container by running command:
# Valid from v13.0.1+
$ docker exec container_name bash -c 'echo "${DMS_RELEASE}"'
v13.1.0
# Check images (not useful when you use `:latest` tag):
$ docker images | grep docker-mailserver
REPOSITORY TAG IMAGE ID CREATED SIZE
mailserver/docker-mailserver 13.1 c100362e7b4b 11 days ago 622MB
mailserver/docker-mailserver latest c100362e7b4b 11 days ago 622MB |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
polarathene
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This question implies you're not using an image tag, that is bad.
You want to make this clear by using an image tag, especially since major versions have breaking changes and if you pull a newer major version accidentally (or on a new system) you might experience breakage with a config that previously worked fine.
So include the version you want/use as the tag:
mailserver/docker-mailserver:13.1