rxda / docker_pull

a repo for docker http pull image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker pull image

A small golang tool to pull docker images use http



1) start up

  • build
  sh build.sh

   will generate an executable ./build/gopull,run "./build/gopull help"

  • or run
  go run main.go help

2) Pull docker images and generate a tar archive on a machine without docker

  ./gopull download redis

3) Pull docker images whith Digest

  ./gopull download redis@sha256:31120dcdd310e9a65cbcadd504f4fe60a185bd634ab7c6a35e3e44a941904d97

4) Pull amd64 images by default, user -p platform select the desired image

  ./gopull download -l redis 
  ./gopull download -p arm64 redis

5) Compatible with docker pull

  ./gopull pull redis 

6)  Import the downloaded image

  # docker导入
  docker load -i redis.tar
  
  # ctr导入
  ctr image import nginx.tar

About

a repo for docker http pull image


Languages

Language:Go 99.7%Language:Shell 0.3%