8000 cli: jiji service prune counts tags instead of images · Issue #111 · acidtib/jiji · GitHub
[go: up one dir, main page]

Skip to content

cli: jiji service prune counts tags instead of images #111

Open

Description

@acidtib

Summary

jiji service prune has the same tag-versus-image counting gap as the agent's continuous retention (#109). It applies --retain N to tag rows, so a multi-tagged image is miscounted and its removal by ID fails.

Where

crates/jiji-cli/src/commands/service/prune.rs, prune_service_images:

Proposed fix

Same approach as #109, ideally sharing the grouping logic: list {{.ID}} {{.Repository}}:{{.Tag}}, group by ID in listing order, apply retain to distinct images, keep any image with an in-use tag, and remove stale tags by repo:tag. The command's per-image output (Removed / Retained / Failed) should report per image, not per row.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0