Skip to content

fix: strip registry prefix from image name before orphan comparison#140

Merged
Mr-Leshiy merged 3 commits into
mainfrom
fix/image-orphan-marking
May 15, 2026
Merged

fix: strip registry prefix from image name before orphan comparison#140
Mr-Leshiy merged 3 commits into
mainfrom
fix/image-orphan-marking

Conversation

@Mr-Leshiy
Copy link
Copy Markdown
Owner

@Mr-Leshiy Mr-Leshiy commented May 15, 2026

Summary

  • Podman qualifies image names with a registry prefix (e.g. docker.io/library/scell-97d4fda45a1bec50:latest) while Docker uses the bare name (scell-97d4fda45a1bec50:latest)
  • This caused the orphan check (image_id != id) to always return true on Podman, marking every image as orphaned
  • Fix: strip everything up to and including the last / from the image name before parsing it as SCellId, making the comparison work correctly on both runtimes

Mr-Leshiy and others added 3 commits May 15, 2026 12:48
Podman qualifies image names with a registry prefix (e.g.
docker.io/library/scell-97d4fda45a1bec50) while Docker uses the bare
name. Strip everything before the last '/' so the SCellId comparison
works correctly on both runtimes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Mr-Leshiy Mr-Leshiy merged commit 13ac945 into main May 15, 2026
4 checks passed
@Mr-Leshiy Mr-Leshiy deleted the fix/image-orphan-marking branch May 15, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant