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

docker login returns error 500 #3018

Open
timurey opened this issue Oct 1, 2024 · 0 comments
Open

docker login returns error 500 #3018

timurey opened this issue Oct 1, 2024 · 0 comments

Comments

@timurey
Copy link

timurey commented Oct 1, 2024

While setting up the registry according to the manual https://github.com/sameersbn/docker-gitlab/blob/master/docs/container_registry.md I encountered a setup problem:
When trying to authorize a user via docker login, a 500 error occurs.
docker login registry.host.com -u user --password password returns Error response from daemon: Get "https://registry.host.com/v2/": received unexpected HTTP status: 500 Internal Server Error
At the same time, there are no entries in the docker logs about the cause of the error.
After mounting /var/logs/ on the host, I was able to find out the reason: there are no access rights to the file /certs/registry.key
After chown docker:docker registry.key in certs directory, everything worked as expected.
I think it is necessary to add a check for access rights to the file to the documentation, since when running gitlab according to this manual, the error is not displayed in the docker logs.

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

1 participant