Skip to content

crictl images not filtering by repository:tag #2008

@MikeSpreitzer

Description

@MikeSpreitzer

What happened:

I tried to use crictl images $repository:$tag to test for the presence of a particular image, but the output was all the images rather than just the requested one.

root@fmatest-control-plane:/# crictl images
IMAGE                                                     TAG                  IMAGE ID            SIZE
docker.io/kindest/kindnetd                                v20250214-acbabc1a   ee75e27fff91c       35.7MB
docker.io/kindest/local-path-helper                       v20241212-8ac705d0   b530d82c16da9       2.95MB
...

root@fmatest-control-plane:/# crictl images docker.io/kindest/kindnetd:v20250214-acbabc1a
IMAGE                                                     TAG                  IMAGE ID            SIZE
docker.io/kindest/kindnetd                                v20250214-acbabc1a   ee75e27fff91c       35.7MB
docker.io/kindest/local-path-helper                       v20241212-8ac705d0   b530d82c16da9       2.95MB
...

What you expected to happen:

I expected to get a list containing only the given repository:tag.

How to reproduce it (as minimally and precisely as possible):

Have multiple images. Use crictl images $repo:$tag to ask for just one.

Anything else we need to know?:

root@fmatest-control-plane:/# crictl --version
crictl version 1.32.0

Environment:

  • Container runtime or hardware configuration: kind version 0.27.0 on the host
  • Guest OS (e.g: cat /etc/os-release): Debian GNU/Linux 12 (bookworm)
  • Kernel (e.g. uname -a):
    • guest: Linux fmatest-control-plane 6.6.119-0-virt #1-Alpine SMP PREEMPT_DYNAMIC 2025-12-10 08:04:08 aarch64 GNU/Linux
    • host: Darwin mjs13 24.6.0 Darwin Kernel Version 24.6.0: Mon Jan 19 21:56:28 PST 2026; root:xnu-11417.140.69.708.3~1/RELEASE_ARM64_T6020 arm64
  • Others: Kubernetes v1.32.2 in the kind cluster

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions