Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 311 Bytes

find-which-container-includes-overlay.md

File metadata and controls

9 lines (6 loc) · 311 Bytes

查找 Overlay ID 与哪个容器相关

docker inspect -f $'{{.Name}}\t{{.GraphDriver.Data.MergedDir}}' $(docker ps -aq) | grep -i <overlay-id>

案例

找到占用硬盘空间较大的 overlay du -h -d 1 /disk1/docker/overlay/,目录名即 overlay id。