Files
gists/tools
tke 177783908d feat: Add standalone Docker image pull and save tool
Add dockerpullsave.py - a Python utility that downloads Docker images
directly from registries and saves them as tar archives without requiring
Docker daemon to be running.

Features:
- Supports multiple registries (Docker Hub, GHCR, ECR, private registries)
- Handles authentication via bearer tokens and registry discovery
- Multi-architecture manifest list support (defaults to linux/amd64)
- Robust digest-based image selection for consistent pulls
- Progress bar for large layer downloads with Docker-style formatting
- Proper Docker image structure generation for 'docker load' compatibility

Usage examples:
  ./dockerpullsave.py ubuntu:latest
  ./dockerpullsave.py ghcr.io/oras-project/oras:v1.1.0
  ./dockerpullsave.py alpine@sha256:f271e74b17ced...

Output: Creates {image}_{tag}.tar file ready for 'docker load -i'

This tool is particularly useful for:
- Air-gapped environments where Docker daemon cannot access registries
- Batch image downloading and offline distribution
- Registry migration and backup scenarios
- Security scanning workflows requiring image inspection
2026-04-02 12:49:47 +02:00
..
2026-03-07 10:32:56 +01:00