Memory usage of Docker containers

后端 未结 3 2128
不知归路
不知归路 2021-02-12 01:31

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 w

3条回答
  •  Happy的楠姐
    2021-02-12 02:19

    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.

    • https://github.com/dotcloud/docker/issues/36

    It does look like there's an lxc project that you should be able to use to track CPU and Memory.

    • https://github.com/Soulou/acadock-live-lxc

提交回复
热议问题