Skip to content

sys-liqian/image_push_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages