Skip to content

Tool calculate Docker image pull size for a sequence of image pulls.

Notifications You must be signed in to change notification settings

seanshahkarami/docker-image-pull-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image Pull Size

This tool helps you estimate how much data will be used when pulling a sequence of images and caching layers.

This is a super early prototype and mostly for my own use!

Usage

# python3 image_pull_size.py image1 image2 ...
python3 image_pull_size.py python:3.8 python:3.7 my/app

The arch (amd64, arm64) can be provided using the --arch flag.

The output will contain a trace of the total size and number of layers accumulated by the provided sequence of pulls.

  • name. Name of image pulled at this step.
  • size_total. Total accumulated size.
  • size_total_pct. Total accumulated size as percentage of final accumulated size.
  • size_delta. Size of new layers in this pull.
  • size_delta_pct. Size of new layers in this pull as percentage of final accumulated size.
  • layers_total. Total accumulated number of layers.
  • layers_delta. New layers in this pull.

About

Tool calculate Docker image pull size for a sequence of image pulls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages