github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/stats.md (about)

     1  # docker stats
     2  
     3  <!---MARKER_GEN_START-->
     4  Display a live stream of container(s) resource usage statistics
     5  
     6  ### Aliases
     7  
     8  `docker container stats`, `docker stats`
     9  
    10  ### Options
    11  
    12  | Name          | Type     | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                          |
    13  |:--------------|:---------|:--------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
    14  | `-a`, `--all` |          |         | Show all containers (default shows just running)                                                                                                                                                                                                                                                                                                                                                                                     |
    15  | `--format`    | `string` |         | Format output using a custom template:<br>'table':            Print output in table format with column headers (default)<br>'table TEMPLATE':   Print output in table format using the given Go template<br>'json':             Print in JSON format<br>'TEMPLATE':         Print output using the given Go template.<br>Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
    16  | `--no-stream` |          |         | Disable streaming stats and only pull the first result                                                                                                                                                                                                                                                                                                                                                                               |
    17  | `--no-trunc`  |          |         | Do not truncate output                                                                                                                                                                                                                                                                                                                                                                                                               |
    18  
    19  
    20  <!---MARKER_GEN_END-->
    21