Skip to content

fix: preserve equals signs in image label filter values - #5163

Open
immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix-image-label-filter-equals
Open

fix: preserve equals signs in image label filter values#5163
immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix-image-label-filter-equals

Conversation

@immanuwell

@immanuwell immanuwell commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

nerdctl images --filter label=example.payload=a=b fails with invalid filter, while Docker accepts the same filter.
Label values are plain strings, so = is legit here

The parser now splits into at most three parts and keeps the rest in the label value.
Non-label filters keep their old validation

Repro before this change:

nerdctl images --filter label=example.payload=a=b

FATA[0000] invalid filter "label=example.payload=a=b"

Tested with go test ./pkg/imgutil ./pkg/cmd/image

Signed-off-by: Immanuel Tikhonov <pchpr.00@list.ru>
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