将本地Docker图像层显示为树
docktree的Python项目详细描述
显示Docker图像的树结构。
这意味着取代了docker images-t的删除功能。
用法:docktree[-h][image]
- 位置参数:
- 图像仅显示图像的父级和子级
- 可选参数:
-h, --help show this help message and exit -s, --show-size show the virtual size of each layer
用法示例:
(env2)pi@raspberrypi [work/docktree] % docktree └─ 71a76a74c237 ├─ 92b43b34adf9 test1:latest └─ 2f5ca2d69bf4 └─ ba37442b01bb ├─ 643e1371a625 test2:latest │ └─ 7e548b8390f2 test3:latest └─ c89a6bc5d884 └─ baee49e775b3 resin/rpi-raspbian:latest,resin/rpi-raspbian:jessie,resin/rpi-raspbian:jessie-2015-10-21 (env2)pi@raspberrypi [work/docktree] % docktree test2 └─ 71a76a74c237 └─ 2f5ca2d69bf4 └─ ba37442b01bb └─ 643e1371a625 test2:latest └─ 7e548b8390f2 test3:latest