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.
The purpose of this project is to facilitate the use for users who prefer graphical interfaces.
Use JSON format to add the private repository address, and the request should use the v2 format.
Get the script:
wget https://raw.githubusercontent.com/stu2116Edward/docker-pull-tar-gui/refs/heads/main/docker_image_puller.pyUsage:
python3 docker_image_puller.py [-i IMAGE] [-a ARCH] [-r REGISTRY]example:
python3 docker_image_puller.py -i alpine -a amd64 -r abc.itelyou.cfpython3 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 -hDisplays version information
python3 docker_image_puller.py -vEnable 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
- Use this tool to pull the image and generate a .tar file, for example
library_nginx_amd64.tar. - Transfer the .tar file to a host with a Docker environment.
- Run the following command to import the image:
docker load -i library_nginx_amd64.tar- Verify whether the image has been imported successfully.
docker imagesInstall 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


