Skip to content

feat(cli/stats): add sorting to docker stats - #7499

Open
youknowforsearch wants to merge 1 commit into
docker:masterfrom
youknowforsearch:stats-sort
Open

youknowforsearch wants to merge 1 commit into
docker:masterfrom
youknowforsearch:stats-sort

Conversation

@youknowforsearch

Copy link
Copy Markdown

Summary

  • add case-insensitive --sort support for CPU, memory, memory percentage, network I/O, block I/O, PIDs, name, and ID
  • sort both streaming and --no-stream output with deterministic tie-breaking
  • update shell completions and documentation

Tests

  • GOTOOLCHAIN=auto go test ./cli/command/container
  • live Docker daemon checks for --sort CPU, mem%, net, and block
  • bash -n contrib/completion/bash/docker
  • git diff --check

@youknowforsearch
youknowforsearch requested review from a team, albers and thaJeztah as code owners November 8, 2026 11:49
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