Categorygithub.com/lianshufeng/docker-pull
modulepackage
0.0.21
Repository: https://github.com/lianshufeng/docker-pull.git
Documentation: pkg.go.dev

# README

Docker Download Tool

Features

Basic

docker-pull [-config] <imageName>

eg : docker-pull -proxy http://127.0.0.1:1080 -thread 5 nginx
  -architecture string
        platform.architecture (default "amd64")
  -buffByte int
        download buffByte (default 10485759)
  -cache string
        cache directory (default "_cache")
  -docker_api_version string
        DOCKER_API_VERSION (default "1.30")
  -load
        load image (default true)
  -m string
        mirror url , docker.chatsbot.org
  -os string
        platform.os (default "linux")
  -proxy string
        proxy server , http://127.0.0.1:1080
  -thread int
        thead number (default 6)
  -variant string
        platform.variant

Usage

  • simple
docker-pull nginx
docker-pull mysql/mysql-server:8.0
docker-pull nginx@sha256:d987469c32fecb3f839a4606671eb2bb308039a3a6b2d086341769da3931b9b6
  • with proxy
docker-pull -proxy http://127.0.0.1:1080 nginx
  • with mirror
docker-pull -m docker.chatsbot.org nginx

Docker

  • x86
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/work lianshufeng/docker-pull nginx
  • arm
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/work lianshufeng/docker-pull:arm -architecture arm nginx

Installation

  1. Clone the repository:
git clone https://github.com/lianshufeng/docker-pull.git
  1. Build:
go build ./

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author