Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# display usage statistics with streaming
PS C:\Users\Administrator> docker stats
CONTAINER ID NAME CPU % PRIV WORKING SET NET I/O BLOCK I/O
dc61d0acb1cd tender_sinoussi 0.19% 84.77MiB 346kB / 10kB 18.4MB / 8.88MB
65173d398411 adoring_newton 12.50% 109.7MiB 2.57MB / 158kB 97.4MB / 42.5MB
# display without streaming
PS C:\Users\Administrator> docker stats --no-stream
CONTAINER ID NAME CPU % PRIV WORKING SET NET I/O BLOCK I/O
dc61d0acb1cd tender_sinoussi 0.00% 82.92MiB 355kB / 10.8kB 18.5MB / 9.13MB
65173d398411 adoring_newton 0.00% 99.02MiB 2.57MB / 158kB 98.1MB / 43.2MB
# display for a specific container
PS C:\Users\Administrator> docker stats 65173d398411 --no-stream
CONTAINER ID NAME CPU % PRIV WORKING SET NET I/O BLOCK I/O
65173d398411 adoring_newton 0.00% 95.41MiB 2.57MB / 158kB 98.1MB / 43.3MB
# display with specific format
PS C:\Users\Administrator> docker stats --no-stream --format "table {{.ID}} {{.CPUPerc}} {{.MemPerc}}"
CONTAINER ID CPU % MEM %
dc61d0acb1cd 0.00% --
65173d398411 0.00% --
|