docker-registry-ui icon indicating copy to clipboard operation
docker-registry-ui copied to clipboard

Can't push to registry : HTTP error

Open djaym7 opened this issue 1 year ago • 1 comments

Hi, I use this docker registry UI and I have an issue...

Bug description

Registry started using : docker run -d -p 5000:80 -e REGISTRY_TITLE="PRegistry" -e REGISTRY_URL=http://localhost:5000 joxit/docker-registry-ui:latest

when docker push to local:5000 it gives below error. I can't use https.

''' 0002c93bdb37: Waiting error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "\r\n

404 Not Found\r\n\r\n

404 Not Found

\r\n
nginx/1.25.0
\r\n\r\n\r\n"

'''

djaym7 avatar Jun 19 '23 23:06 djaym7

Hello, you are miss-configuring the project.

First of all joxit/docker-registry-ui contains only a UI, it does not bundle a docker registry server.

By setting REGISTRY_URL to http://localhost:5000 you are creating a loop on the UI.

Please refer to my documentation (FAQ and Available options) and Recommended Docker Registry Usage for a correct basic configuration.

If you need to setup HTTPS, you must configure a reverse proxy in front of my project and your docker registry using NGINX or apache2/httpd and common OPS knowledge.

Joxit avatar Jun 25 '23 09:06 Joxit