Backup/Save all Docker Images to a compressed file
✓ Published0🌍 Public
Aaharonh
Last edited Dec 8, 2015
Created on Feb 17, 2018
This visualization example shows a shell script that backs up every Docker image on the system to a compressed file. It demonstrates a practical workflow for system administration rather than a graphical chart. The script uses the `docker images` command to list images, filters out lines with "none" tags, and extracts image names with `awk`. It then loops through each image, transforms the name into a filename by replacing slashes and colons with hyphens, and saves the image using `docker save` piped through `pigz` for gzip compression with best quality. The process runs in real time as each image is processed sequentially.
AI-generated description