📜  docker 在 pull acr 之前获取图像大小 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:07.562000             🧑  作者: Mango

代码示例1
#For Microsoft Container Registry
#To enable docker manifest inspect, edit ~/.docker/config.json file and set experimental to enable.

docker manifest inspect -v / | grep size | awk -F ':' '{sum+=$NF} END {print sum}' | numfmt --to=iec-i