Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker get image size before pull acr

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

docker manifest inspect -v <registry-domain>/<image-name> | grep size | awk -F ':' '{sum+=$NF} END {print sum}' | numfmt --to=iec-i
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #docker #image #size #pull #acr
ADD COMMENT
Topic
Name
1+5 =