Skip to content

Commit

Permalink
setup stats command
Browse files Browse the repository at this point in the history
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
  • Loading branch information
fahedouch committed Nov 15, 2021
1 parent 5579a69 commit 3295435
Show file tree
Hide file tree
Showing 12 changed files with 1,065 additions and 4 deletions.
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]`

### :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

0 comments on commit 3295435

Please sign in to comment.