kwk / docker-registry-frontend

Browse and modify your Docker registry in a browser.
https://registry.hub.docker.com/u/konradkleine/docker-registry-frontend/
MIT License
1.68k stars 616 forks source link

Request to registry not specifying registry port correctly #199

Open RussellTaylor83 opened 6 years ago

RussellTaylor83 commented 6 years ago

Hello,

I am following default configurations for everything afaik, but the front end is not specifying the correct port when trying to acces the registry.

Expected behavior

I open the repositories list and it sends a request to https://localhost:5000/v2/_catalog?n=20&last=

Actual behavior

It sends a request to https://localhost/v2/_catalog?n=20&last=

Steps to reproduce the problem

docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=0.0.0.0 \ -e ENV_DOCKER_REGISTRY_PORT=5000 \ -e ENV_USE_SSL=yes \ -v /certs/registry.crt:/etc/apache2/server.crt:ro \ -v /certs/registry.key:/etc/apache2/server.key:ro \ -p 443:443 \ konradkleine/docker-registry-frontend:v2

This is a problem for me with and without SSL. If I run the front end specifying I want it on port 8000 it will send a web request to port 8000 expecting the registry service to be there.

I must be configuring something incorrectly!

Thanks

Russ

derPinguin commented 5 years ago

Take a look at issue #170 or #181, #170 did the trick for me