You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the "mirrors" config allows the use of private registries which can cache frequently pulled images.
Often the mirror changes the path to the image, for example in the default registry you might have imagegroup/imagename, but in the mirror you have projectname/imagegroup/imagename. An extension which tells Docker to request the new path when it uses the mirror would be awesome.
Currently
with the mirrors config, if I have http://privateregistry.company.com:5000 as a mirror and I request imagegroup/imagename:tagthatisonlyonprivateregistry
docker attempts to pull the image from http://privateregistry.company.com:5000/imagegroup/imagename:tagthatisonlyonprivateregistry.
What Would Be Awesome
with the mirrors config, if I have http://privateregistry.company.com:5000 as a mirror
and a regex rewrite added to the mirror config like
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Request
Using the "mirrors" config allows the use of private registries which can cache frequently pulled images.
Often the mirror changes the path to the image, for example in the default registry you might have
imagegroup/imagename
, but in the mirror you haveprojectname/imagegroup/imagename
. An extension which tells Docker to request the new path when it uses the mirror would be awesome.Currently
with the mirrors config, if I have
http://privateregistry.company.com:5000
as a mirror and I requestimagegroup/imagename:tagthatisonlyonprivateregistry
docker attempts to pull the image from
http://privateregistry.company.com:5000/imagegroup/imagename:tagthatisonlyonprivateregistry
.What Would Be Awesome
http://privateregistry.company.com:5000
as a mirrorand I request
imagegroup/imagename:tagthatisonlyonprivateregistry
docker attempts to pull the image from
http://privateregistry.company.com:5000/mirrorcacheproject/imagegroup/imagename:tagthatisonlyonprivateregistry
.Support
This functionality would be similar to moby/moby#34319 (comment)
This would enable something like goharbor/harbor#8082
This has been tested and enabled by some companies like this: SUSE/docker@8175dcf
Beta Was this translation helpful? Give feedback.
All reactions