Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-registry-web

simple, ugly and really really STUPID web interface for browsing docker-registry

Docker Pull Command
Owner
tomaskral
Source Repository

Comments (4)
marcellodesales
3 years ago

Hi Tom,

I'm sorry my server lost its configuration and it couldn't pull the latest version of your image... It is working now! Thanks a lot for your help!!!

marcellodesales
3 years ago

HI Tom,

It looks like your code is still with problems with hard-coded ports... My registry is running on port 80 on my server... :( I ran the command giving the correct port number:

root@pppdc9prd495 mdesales]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e4b424399c30 tomaskral/docker-registry-web:latest /usr/bin/python /opt 8 seconds ago Up 7 seconds 0.0.0.0:4000->4000/tcp prickly_thompson
0914dfb2d30a stackbrew/registry:latest /bin/sh -c 'exec doc 9 days ago Up 8 days 0.0.0.0:80->5000/tcp stupefied_ritchie

When I go to the browser, it shows the python stacktrace showing the attempt to connect to localhost on port 5000... :(

docker run -d -p 4000:4000 -e REGISTRY_URL=http://localhost:80 tomaskral/docker-registry-web
docker run -d -p 4000:4000 -e REGISTRY_URL=http://os.registry.docker.corp.intuit.net:80 tomaskral/docker-registry-web

All tries to connect to localhost:5000, but my registry is running on port 80...
requests.exceptions.ConnectionError
ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v1/search?q= (Caused by <class 'socket.error'>: [Errno 97] Address family not supported by protocol)

tomaskral
3 years ago

sorry i had couple of bugs there, now it sould work.

Also try to set env variable REGISTRY_URL it should point to address where is your registry running, for example:

docker run -d -p 4000:4000 -e REGISTRY_URL=http://172.17.42.1:5000  tomaskral/docker-registry-web

or for testing i do something like this:

REGISTRY_ID=$(docker run -d -p 5000:5000 registry)
REGISTRY_URL=$(docker inspect --format='http://{{.NetworkSettings.IPAddress}}:5000' $REGISTRY_ID)
docker run -d -p 4000:4000 -e REGISTRY_URL=$REGISTRY_URL tomaskral/docker-registry-web
marcellodesales
3 years ago

Hi there... I started the container as follows:

docker run -d -p 4000:4000 tomaskral/docker-registry-web

But I'm getting the following error while trying to navigate to the service:

requests.exceptions.ConnectionError
ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v1/search?q= (Caused by <class 'socket.error'>: [Errno 97] Address family not supported by protocol)

I have a private registry running on port 5000 already:

88ca66d731ae stackbrew/registry:latest /bin/sh -c 'exec doc 4 weeks ago Up 4 weeks 0.0.0.0:5000->5000/tcp insane_babbage

I have another Web UI reading it... Any idea why yours is not working?