Closed cschlaefcke closed 7 years ago
I just found the logs :-)
[Tue Jul 25 06:06:03.415795 2017] [proxy:error] [pid 39:tid 140161694299904] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Tue Jul 25 06:06:03.415855 2017] [proxy:error] [pid 39:tid 140161694299904] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 60s
[Tue Jul 25 06:06:03.415862 2017] [proxy_http:error] [pid 39:tid 140161694299904] [client 172.17.0.1:41502] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://localhost:8080/repositories/
Looks like the frontend cannot reach the backend - no idea why :-(
Selinux is set to permissive by the way
Argh - got it :-)
Actually pointing to the registry with localhost does not seem to be so clever. Fixed by linking the registry to the frontend and referring to ENV_DOCKER_REGISTRY_HOST=registry instead of ENV_DOCKER_REGISTRY_HOST=localhost finally let my repository appear :-)
centos-linux-7 ~]# docker run -d --name registry-frontend --link registry -e ENV_DOCKER_REGISTRY_HOST=registry -e ENV_DOCKER_REGISTRY_PORT=5000 -p 8080:80 konradkleine/docker-registry-frontend:v2
Hi,
I am trying to setup a custom docker registry server and would also like to access the content of the registry via browser. First I stumbled upon Philipp Wintermantel´s Blog and from there I followed the link to this project. The core registry is up and running so far but I was neither able to get the frontend part running from Philipp´s blog nor from the example-setup here.
The frontend actually starts but when I push for example the busybox image to the registry it will not show up in the frontend.
I double checked by connecting to the registry container having a look in the registry storage location:
I started the registry like this:
[centos-linux-7 ~]# docker run -d --name registry -p 5000:5000 -e SEARCH_BACKEND=sqlalchemy -e STORAGE_PATH=/registry registry
and the frontend like this:
[centos-linux-7 ~]# docker run -d --name registry-frontend -e ENV_DOCKER_REGISTRY_HOST=localhost -e ENV_DOCKER_REGISTRY_PORT=5000 -p 8080:80 konradkleine/docker-registry-frontend:v2
The only thing I wonder is why the actual storage path from the config.yml
/var/lib/registry
expands to/var/lib/registry/docker/registry
in the container. Does this maybe point to a misconfiguration or incompatibility somehow?I am running:
on
docker-registry-frontend version:
I hope that someone can point me to the right direction. Any hint would be very much appreciated.
Best regards,
Christian