We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ docker save -o path.tar imageName
$ docker load < image.tar
$ docker stats [Options] [containerID/containerName]
默认情况下,stats 命令会每隔 1s 刷新输出
Options
--no-stream 只返回当前的状态
--format 格式化输出结果
$ docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
导出 docker images
导入 docker images
$ docker load < image.tar
监控容器资源消耗
默认情况下,stats 命令会每隔 1s 刷新输出
Options
$ docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
The text was updated successfully, but these errors were encountered: