Sort by memory usage in docker stats

前端 未结 4 1864
庸人自扰
庸人自扰 2020-12-31 02:12

Is there a way to display the docker stats sorted by memory usage of the containers?

I am using the following command to display the container with their names and I

4条回答
  •  生来不讨喜
    2020-12-31 02:59

    docker stats --no-stream --format "table {{.Name}}\t{{.Container}}\t{{.MemUsage}}" | sort -k 3 -h 
    

    Commands sort only by memory

提交回复
热议问题