Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 2017bee

Browse files
committed
Fix traefik version fetching for new versions of traefik image
1 parent 10dfeb7 commit 2017bee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/version.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module.exports = fastify => {
2727
const allImages = await docker.listImages();
2828
const traefik = allImages.find(img => img.RepoTags && img.RepoTags.find(t => t.includes('traefik')));
2929
if (traefik) {
30-
traefikVersion = traefik.Labels['org.label-schema.version'];
30+
traefikVersion =
31+
traefik.Labels['org.label-schema.version'] || traefik.Labels['org.opencontainers.image.version'];
3132
}
3233
// get latest versions
3334
const lastServerTag = await getLatestVersion(exoServerUrl);

0 commit comments

Comments
 (0)