Skip to content

Commit 372fbf4

Browse files
committed
setup stats command
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
1 parent 5579a69 commit 372fbf4

File tree

7 files changed

+913
-4
lines changed

7 files changed

+913
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,12 @@ Flags:
931931
- :whale: `-f, --format`: Format the output using the given Go template, e.g, `{{json .}}`
932932

933933
## Stats
934+
### :whale: nerdctl stats
935+
Display a live stream of container(s) resource usage statistics.
936+
937+
938+
Usage: `nerdctl stats [flags]`
939+
934940
### :whale: nerdctl top
935941
Display the running processes of a container.
936942

@@ -1061,9 +1067,6 @@ Container management:
10611067

10621068
- `docker checkpoint *`
10631069

1064-
Stats:
1065-
- `docker stats`
1066-
10671070
Image:
10681071
- `docker export` and `docker import`
10691072
- `docker history`

cmd/nerdctl/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ func newApp() *cobra.Command {
221221

222222
// stats
223223
newTopCommand(),
224+
newStatsCommand(),
224225

225226
// #region Management
226227
newContainerCommand(),

0 commit comments

Comments
 (0)