feat: Pin installed services to semver images and normalize registry versions

This commit is contained in:
2026-08-01 20:58:11 +01:00
parent d24fe0ffbf
commit 678356bd5b
6 changed files with 72 additions and 16 deletions
+3
View File
@@ -84,6 +84,9 @@ func (cache *ContainerCache) WatchContainers(ctx context.Context, dc *docker.Doc
// Save to Cache
log.Printf("Service started. Adding container %s - %s to cache", host, containerName)
existing, _ := cache.services[key]
if existing.Version != "" && existing.Version != "latest" && (ver == "" || ver == "latest") {
ver = existing.Version
}
container := types.Container{
ID: containerID,
ServiceName: serviceLabel,