一、Docker 监控方式

1.利用docker 的 docker stats API 

命令: docker stats [容器ID/容器名称]

大学生就业培训,高中生培训,在职人员转行培训,企业团训

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

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

Display a live stream of container(s) resource usage statistics  -a, --all          Show all containers (default shows just running)  --help             Print usage  --no-stream        Disable streaming stats and only pull the first result

大学生就业培训,高中生培训,在职人员转行培训,企业团训

参数:-a, --all   表示查看所有容器包括已经exit状态的

网友评论