Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup stats command #73

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,12 @@ Flags:
- :whale: `-f, --format`: Format the output using the given Go template, e.g, `{{json .}}`

## Stats
### :whale: nerdctl stats
Display a live stream of container(s) resource usage statistics.


Usage: `nerdctl stats [flags]`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next time please add flags too


### :whale: nerdctl top
Display the running processes of a container.

Expand Down Expand Up @@ -1061,9 +1067,6 @@ Container management:

- `docker checkpoint *`

Stats:
- `docker stats`

Image:
- `docker export` and `docker import`
- `docker history`
Expand Down
1 change: 1 addition & 0 deletions cmd/nerdctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func newApp() *cobra.Command {

// stats
newTopCommand(),
newStatsCommand(),

// #region Management
newContainerCommand(),
Expand Down
Loading