feat: Pin installed services to semver images and normalize registry versions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user