顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== Docker 容器負載監看小工具 CTOP ====== * 在一台主機內運行多個容器的環境, 若想了解每個容器的負載狀況, 就可以使用這 ctop 來查看 ===== 一般執行方式 ===== * <cli>docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest</cli> \\ {{:tech:螢幕擷取畫面_2024-01-23_104649.png|}} ===== rootless 的執行方式 ===== * 主要是在 docker.sock 的位置不同, Exp. 如果 rootless 的 docker.sock 路徑是在 **/var/run/user/1000/docker.sock** * <cli>docker run --rm -it -v /var/run/user/1000/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest</cli> \\ {{:tech:螢幕擷取畫面_2024-01-23_104135.png|}} ===== 參考網址 ===== * https://github.com/bcicen/ctop {{tag>docker ctop}} tech/docker-ctop.txt 上一次變更: 2024/01/23 11:07由 jonathan