Skip to content

Feature: Add version label to be able to find version from image#148

Closed
glensc wants to merge 1 commit intotraccar:masterfrom
glensc:patch-2
Closed

Feature: Add version label to be able to find version from image#148
glensc wants to merge 1 commit intotraccar:masterfrom
glensc:patch-2

Conversation

@glensc
Copy link
Contributor

@glensc glensc commented Mar 24, 2025

Add org.opencontainers.image.version label, from docker best practices:

Example:

$ docker inspect ghcr.io/taxel/plextraktsync:latest | jq -r '.[].Config.Labels["org.opencontainers.image.version"]'
0.34.5

@tananaev
Copy link
Member

Not sure I understand the problem is solves. Can you elaborate.

@glensc
Copy link
Contributor Author

glensc commented Mar 24, 2025

I want to query programmatically what is the version of the image: traccar/traccar:latest

Example:

$ docker inspect ghcr.io/taxel/plextraktsync:latest | jq -r '.[].Config.Labels["org.opencontainers.image.version"]'
0.34.5

@tananaev
Copy link
Member

You can use Traccar API for that.

@glensc glensc changed the title Add version label Feature: Add version label to be able to find version from image Mar 25, 2025
@magna-z
Copy link
Member

magna-z commented May 23, 2025

org.opencontainers.image.* labels is a good practice.
Added in #150 with remove build step on master branch: https://github.com/traccar/traccar-docker/pull/150/files#diff-ff6530072f2ee96cab1b3a1bd86c4db4afa00ae564f6484789969129711495aeL36-L38

@magna-z magna-z closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants