Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 940 Bytes

README.md

File metadata and controls

28 lines (14 loc) · 940 Bytes

Registry Fake Pusher

MIT license

Usage

With this tool, if you want to overlay new image layers from one repository tag in Registry on an repository tag in another repository in Registry, you do not need to download all the layers into docker daemon.

Supports

  • registry V2 API;

Steps

  1. Specify SourceRegistry, SourceRepository and SourceTag (need get the top ImageLayer of the image)

  2. Specify TargetRegistry, TargetRepository and TargetTag (the image location wishing to overlay an ImageLayer)

  3. Download source and target manifest according to specified image locationes

  4. Construct the to-overlay-imageLayer

  5. Overlay the to-overlay-imageLayer to target manifest, generating a new manifest

  6. Copy the content of the imageLayer from sourceRegistry to targetRegistry if needed

  7. Push the new manifest.