Docker容器的内存使用 [英] Memory usage of Docker containers
问题描述
有没有办法衡量Docker容器如RAM的资源&安培; CPU使用率
谢谢。
更新:阿德里安·穆阿特(Adrian Mouat)以下码头码头的回答现在支持 docker stats
!
没有办法在当前版本的Docker中进行此操作。未来的版本将通过api或插件来支持这一点。
看起来像一个lxc项目您应该可以使用它来跟踪CPU和内存。
I am using Docker to run some containerized apps. I am interested in measuring how much resources they consume (as far as regarding CPU and Memory usage).
Is there any way to measure the resources consumed by Docker containers like RAM & CPU usage?
Thank you.
Update: See @Adrian Mouat's answer below as docker now supports docker stats
!
There isn't a way to do this that's built into docker in the current version. Future versions will support this via an api or plugin.
It does look like there's an lxc project that you should be able to use to track CPU and Memory.
这篇关于Docker容器的内存使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!