-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Running docker
commands against Gitea registry results in a call against ROOT_URL
#22033
Comments
You set ROOT_URL to something non-existing. Why should that work? In your stackoverflow question you describe an "internal call" to the wrong domain. Gitea does not perform a request. The usual docker login flow is to query gitea/routers/api/packages/container/container.go Lines 114 to 119 in 77f5035
Here you see the url is build using |
Naïvely, for operations that do not require Gitea knowing it's own URL (like generating a That said, your explanation of the authentication mechanism makes it clear why this behaviour happens, and why addressing it would not be desirable. Thanks for the explanation! |
Basically I was looking for Multi-domain support - I want to be able to access my Gitea instance via an internal Domain Name (which resolves directly via my Router's DNS override) or via an external Domain Name (resolved by DNS servers out on the broader Internet), and moreover want to be able to access the former even if the latter is inaccessible. |
Description
See this repo - when running
docker
commands (docker login
,docker pull
, etc.) against a registry, a call is made against the server'sROOT_URL
. If there is no server available at theROOT_URL
, this will result in an error. This can result in issues when theROOT_URL
refers to the public domain name of the Gitea service, but an image provided by the registry that is a prerequisite for setting up the public domain name is referenced by an internal domain name.Gitea Version
Gitea version 1.18.0+rc1 built with GNU Make 4.3, go1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Kubernetes in the original situation; docker-compose in the minimal reproduction.
Database
None
The text was updated successfully, but these errors were encountered: