-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Docker Package Registry not working with sub directory? #21092
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
Comments
Use a reverse proxy (nginx for example) to rewrite the URL by removing the static part before passing it to your Gitea instance. |
That's not a Gitea limitation. The docker api needs the |
Thanks for the feedback! I'll be trying the proxy tomorrow with a colleague. But I did a little digging and it seems to me that this can (and should?) be configured on the server side using the prefix setting: https://docs.docker.com/registry/configuration/#http |
The registry supports that but the/every client does not. See #18438 (comment) and the following posts for more informations. |
Thanks guys! I'm no expert but I managed to get this working. Running gitea and nginx with docker compose -- add this to nginx:
|
This should be added to the gitea documentation for nginx for subfolders |
Fixes #21092 suggested by #21092 (comment) --------- Co-authored-by: wxiaoguang <[email protected]>
Description
According to this documentation: https://docs.gitea.io/en-us/packages/container/ I think it is not possible to use the package registry with docker, if GitEa is running in a sib directory as in "example.com/gitea".
Is this something that one can bypass by altering the
docker push
command?Gitea Version
1.17.1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Hosted with Docker without subdomain but with sub directory under
https://mydomain.com/gitea
Database
No response
The text was updated successfully, but these errors were encountered: