nerdctl events supports label-based filtering
Introduced 2026-09-20 · score 0.97
HOW TO USE IT
When debugging containers with a specific label, follow the event stream with `nerdctl events --filter label=com.example.app=myapp`. Label filtering is available in nerdctl v2.4.0.
nerdctl events --filter label=com.example.app=myappWHY THIS HELPS
Follow events for containers with a specific label during debugging.
BEFORE THIS CHANGE
Before v2.4.0, `nerdctl events` did not support label-based filtering.
REQUIREMENTS AND LIMITATIONS
- Version: v2.4.0
- --filter (-f): Filter events by a condition; for this task, use `label=<key>=<value>`.
- label=<key>=<value> (required): Match events for containers with the specified label key and value. The value may contain `=` characters.
- Prerequisite: Use nerdctl v2.4.0 or later for label-based event filtering.
- Prerequisite: This nerdctl release is expected to be used with containerd v1.7 or later; some features may not work with other containerd releases.
FIRST-PARTY EVIDENCE
- https://github.com/containerd/nerdctl/releases/tag/v2.4.0
- https://github.com/containerd/nerdctl/pull/4999
- https://github.com/containerd/nerdctl/blob/v2.4.0/pkg/cmd/system/events.go
Check the installed version and the source before using it. Entry JSON