I knew I can tag the image name from official name with private image name and push to it
docker pull alpine
docker tag alpine <abc.jrog.io>/alpine
docker push <abc.jrog.io>/alpine
But this is not the case when I deal with Kubernetes helm charts, especailly with sub-charts.
I can set new image name in values.yaml
, but if one chart calls other charts, I can't make this works.
So currently I have to pull all charts and rename images and add private registry server as prefix.
Are there any ways I can do that transparently?
For example, if I pull image alpine
, the computer/server can automatically to get the image from private registry without any image name changed?
So the ideal is very close to git insteadOf feature.
git config --global url."https://".insteadOf git://
with above configuraiton, I can force https://
to git://
always
I'd like to set the similar in docker pull
, it is not pull from hub.docker.io, but from <abc.jrog.io>