Joxit/docker-registry-ui

how can i custom the pull link ?

wuyue92tree opened this issue ยท 8 comments

from: docker pull 192.168.1.29:4080/drone-test:latest
to: docker pull test.io/drone-test:latest

Is there an option for this?

thanks~

Joxit commented

Hi,

What is the tag of the image you are using ?

Hi,

What is the tag of the image you are using ?

like this 192.168.1.29:5000/drone-test:latest

Joxit commented

Sorry, I meant the image tag of docker-registry-ui.
The static version (like docker-registry-ui:static) or the default one (like docker-registry-ui:latest) ?

Sorry, I meant the image tag of docker-registry-ui.
The static version (like docker-registry-ui:static) or the default one (like docker-registry-ui:latest) ?
docker-registry-ui:static

Joxit commented

Okay, the environment variable URL is used to build the pull command, but this need some changes with the registry (CORS configuration).
And this will also by-pass the REGISTRY_URL environment variable and will not fit all use cases...
So I will add a new environment variable in order to customise the pull command and fit your needs ๐Ÿ˜„.

Joxit commented

I did not mention the option, it's PULL_URL

I did not mention the option, it's PULL_URL

It's cool. I'll try it, thanks a lot.

Joxit commented

You are welcome ๐Ÿ˜ƒ