add env var to disable container image update checks (#2371)

This commit is contained in:
henrygd
2026-09-21 10:49:53 -04:00
parent 2c69197d2d
commit cbe4824ac3
3 changed files with 38 additions and 8 deletions

View File

@@ -31,6 +31,9 @@ func normalizedImageReference(image string) string {
// refreshImageUpdates starts at most one background batch. Neither its network
// work nor its completion is part of the container metrics wait group.
func (dm *dockerManager) refreshImageUpdates(containers []*container.ApiInfo, now time.Time) {
if dm.imageUpdatesDisabled {
return
}
dm.imageUpdatesMutex.Lock()
defer dm.imageUpdatesMutex.Unlock()
if dm.imageUpdatesRunning {