mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-08 01:42:44 +01:00
Fix Quadlet container detection
- Remove compose-only filtering from check_image() function - Restore v0.6.0 behavior of checking ALL containers - Filtering now happens only during update phase, not check phase - Fixes issue where Quadlet containers were skipped with 'no compose file'
This commit is contained in:
parent
6f1d63b47c
commit
89e26c512e
2 changed files with 18 additions and 9 deletions
10
podcheck.sh
10
podcheck.sh
|
|
@ -537,14 +537,8 @@ check_image() {
|
|||
fi
|
||||
done
|
||||
|
||||
# Skipping non-compose containers unless option is set
|
||||
ContLabels=$(podman inspect "$i" --format '{{json .Config.Labels}}')
|
||||
ContPath=$($jqbin -r '."com.docker.compose.project.working_dir"' <<< "$ContLabels")
|
||||
[[ "$ContPath" == "null" ]] && ContPath=""
|
||||
if [[ -z "$ContPath" ]] && [[ "$DRunUp" == false ]]; then
|
||||
printf "%s\n" "NoUpdates !$i - not checked, no compose file"
|
||||
return
|
||||
fi
|
||||
# Check ALL containers - original v0.6.0 behavior
|
||||
# Filtering happens during update, not during check
|
||||
|
||||
local NoUpdates GotUpdates GotErrors
|
||||
ImageId=$(podman inspect "$i" --format='{{.Image}}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue