GNU/Linux ◆ screen ◆ bash 1787 views

Demo how partial pulls can improve “podman pull”

This is the script followed for the demo

# printf '[storage]\ngraphroot = "/var/lib/containers/storage"\nrunroot="/run/containers"\ndriver = "overlay"\n[storage.options]\npull_options = {enable_partial_images = "false"}\n' > /etc/containers/storage.conf

# echo "Let's start from an empty storage and pull two images.  The nginx image is based on the fedora image with the addition of the nginx rpm package."

# time podman pull docker.io/gscrivano/zstd-chunked:fedora

# time podman pull docker.io/gscrivano/zstd-chunked:nginx

# echo "let's reset the storage"

# podman system reset -f

# echo "let's enable partial pulls in the storage.conf file"


# printf '[storage]\ngraphroot = "/var/lib/containers/storage"\nrunroot="/run/containers"\ndriver = "overlay"\n[storage.options]\npull_options = {enable_partial_images = "true"}\n' > /etc/containers/storage.conf

# echo "Now let's enable partial pulls and repeat pulling the images"