Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find any repository in main page either #184

Open
dhjcman opened this issue Apr 4, 2018 · 2 comments
Open

Can not find any repository in main page either #184

dhjcman opened this issue Apr 4, 2018 · 2 comments

Comments

@dhjcman
Copy link

dhjcman commented Apr 4, 2018

Error message as follows:

Module auth_kerb disabled.
To activate the new configuration, you need to run:
service apache2 restart
Module ssl already disabled
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Stopping web server: apache2.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
172.16.66.94 - - [04/Apr/2018:08:04:51 +0000] "GET /registry-host.json HTTP/1.1" 200 326 "http://172.16.65.44:8080/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
172.16.66.94 - - [04/Apr/2018:08:04:51 +0000] "GET /app-mode.json HTTP/1.1" 200 369 "http://172.16.65.44:8080/home" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
172.16.66.94 - - [04/Apr/2018:08:04:53 +0000] "GET /repository/repository-list.html HTTP/1.1" 200 1477 "http://172.16.65.44:8080/repositories/20" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
[Wed Apr 04 08:04:53.423077 2018] [proxy:error] [pid 41:tid 140587399362304] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Wed Apr 04 08:04:53.423136 2018] [proxy:error] [pid 41:tid 140587399362304] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 60s
[Wed Apr 04 08:04:53.423160 2018] [proxy_http:error] [pid 41:tid 140587399362304] [client 172.16.66.94:55811] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://172.16.65.44:8080/repositories/20
172.16.66.94 - - [04/Apr/2018:08:04:53 +0000] "GET /v2/_catalog?n=20&last= HTTP/1.1" 503 569 "http://172.16.65.44:8080/repositories/20" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"

Seems like proxy-error
The docker is run on Ubuntu 14.04. Docker version is
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:10:22 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:08:52 2018
OS/Arch: linux/amd64
Experimental: false

Can anyboy help me with that problem? I have been stuck for several days.

@dhjcman
Copy link
Author

dhjcman commented Apr 4, 2018

The command to startup a registry is :
docker run -dit -p 5000:5000 --restart=always --name hub -v $(pwd)/auth:/auth -e REGISTRY_AUTH=htpasswd -e REGISTRY_AUTH_HTPASSWD_REALM="Registry Realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd -v $(pwd)/certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/local.registry.docker.com.crt -e REGISTRY_HTTP_TLS_KEY=/certs/local.registry.docker.com.key -e REGISTRY_STORAGE_DELETE_ENABLED=true -v $(pwd)/registry:/var/lib/registry registry
The command to run docker-registry-frontend is :
docker run -e ENV_DOCKER_REGISTRY_HOST=localhost -e ENV_DOCKER_REGISTRY_PORT=5000 -e ENV_USE_SSL=yes -v $(pwd)/frontend/certs/frontend.crt:/etc/apache2/server.crt:ro -v $(pwd)/frontend/certs/frontend.key:/etc/apache2/server.key:ro -p 8443:443 --link hub konradkleine/docker-registry-frontend

@hrbu
Copy link

hrbu commented Apr 11, 2018

-e ENV_DOCKER_REGISTRY_HOST=localhost

... you should replace this with the ip of your host (the value is resolved from inside the container)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants