Overview
This release adds logic to process maps for library level images differently from images nested under a specific project/organization.
EXAMPLE:
docker.io:harbor.example.com
docker.io/library:harbor.example.com/library
This would be the output for the library vs. non-library images:
nginx:latest
-> harbor.example.com/library/nginx:latest
tmobile/magtape:latest
-> harbor.example.com/tmobile/magtape:latest
This is applicable for use cases such as the Harbor projects image pull-through cache
- See the maps examples for specific syntax on using the library map
- Docker documentation for image naming
Enhancements
- Add logic to handle maps for library level images (#42)
Acknowledgements
- Thanks to @fragolinux for the suggestion!