Skip to content

add layers to a image in registry while no need downloading the base image

License

Notifications You must be signed in to change notification settings

panli889/registry-fake-pusher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

add layers to a image in registry while no need downloading the base image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%