Skip to content

stu2116Edward/docker-pull-tar-gui

Repository files navigation

docker-pull-tar-gui

Language: 中文

This tool is used for packaging Docker images and can be used out of the box without needing to install any local environment.
Currently only supports Chinese and English.

Demo

Search mirror
dp_demo1

Download the image package
dp_demo2

The purpose of this project is to facilitate the use for users who prefer graphical interfaces.

Private repository
屏幕截图 2025-12-05 125650

Use JSON format to add the private repository address, and the request should use the v2 format.

How to use it in Linux

Get the script:

wget https://raw.githubusercontent.com/stu2116Edward/docker-pull-tar-gui/refs/heads/main/docker_image_puller.py

Usage:

python3 docker_image_puller.py [-i IMAGE] [-a ARCH] [-r REGISTRY]

example:

python3 docker_image_puller.py -i alpine -a amd64 -r abc.itelyou.cf

Basic usage

python3 docker_image_puller.py [Options]
  • -h, --help:Displays help information
  • -v, --version:Displays version information
  • -i, --image:Specify the name of the Docker image(example:library/ubuntu:latest or alpine)
  • -a, --arch:Specify the Architecture(default:amd64)
  • -r, --registry:Specify the Docker repository address(default:abc.itelyou.cf)
  • --debug:Enable debug mode and print detailed logs

example:
Displays help information

python3 docker_image_puller.py -h

Displays version information

python3 docker_image_puller.py -v

Enable debug mode and print detailed logs

python3 docker_image_puller.py -i alpine -a amd64 -r abc.itelyou.cf --debug

As with tar files, log files docker_pull_log.txt generated in the current directory

How to Use the image Package

  1. Use this tool to pull the image and generate a .tar file, for example library_nginx_amd64.tar.
  2. Transfer the .tar file to a host with a Docker environment.
  3. Run the following command to import the image:
docker load -i library_nginx_amd64.tar
  1. Verify whether the image has been imported successfully.
docker images

Project packaging

Install Pyinstaller:

pip install pyinstaller

GUI:

pyinstaller -F -w -i favicon.ico docker_image_puller_gui.py --add-data "logo.ico;." --add-data "settings.png;."

CLI:

pyinstaller -F -i favicon.ico docker_image_puller.py

About

Docker image packaging tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages