4-Docker命令之docker stats

1.docker stats介绍

docker stats命令是用于动态显示docker容器的资源消耗情况,如:CPU、MEMORY、网络I/O等。

2.docker stats用法

docker stats [参数] container

[root@centos79 ~]# docker stats --help

Usage:  docker stats [OPTIONS] [CONTAINER...]

Display a live stream of container(s) resource usage statistics

Aliases:
  docker container stats, docker stats

Options:
  -a, --all             Show all containers (default shows just running)
      --format string   Format output using a custom template:
                        'table':            Print output in table format with column headers (default)
                        'table TEMPLATE':   Print output in table format using the given Go template
                        'json':             Print in JSON format
                        'TEMPLATE':         Print output using the given Go template.
                        Refer to https://docs.docker.com/go/formatting/ for more i

猜你喜欢

转载自blog.csdn.net/z19861216/article/details/134667313