Giter VIP home page Giter VIP logo

docker_pull's Introduction

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

docker_pull's People

Contributors

ctxgo avatar

Stargazers

 avatar  avatar  avatar Samuel Theophilus avatar  avatar Giovanni avatar  avatar alaska avatar  avatar Markus Geiger avatar  avatar Jasmine Lee avatar 麦穗喵 avatar mahmut avatar AhmadReza Saghari avatar

Watchers

 avatar

Forkers

puresoul wargio rxda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.