image_push_server

command module
v0.0.0-...-66a0f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

README

Image Push Server

http server is used to upload docker image tar, parse the tar and upload it to the registry.

Build

go build -o bin/image-push-server main.go

Usage

Start Registry
docker run --name tst-registry -d -p 5000:5000 registry:2
Upload Image Tar
docker save alpine:3.18 -o alpine-3.18.tar

curl -v -X POST http://localhost:8080/upload -F "file=@./alpine-3.18.tar" -F "address=http://localhost:5000"
Form data Parameter
  • address: registry or harbor server address,required
  • file: docker iamge tar file path,required
  • username: registry or harbor username.
  • password: reegistry or harbor password.
  • shipTls: skip ssl verify.
  • chunkSize: default Monolithic Upload, if chunkSie is set,use Chunked Upload.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL