You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A docker registry using the distribution project can be configured with a url prefix instead of "/". this then makes it impossible to log in because the
start private registry with this config (http.prefix) set to /test, this can be done with a simple docker run command, as these variables are all also read from env vars.
run docker login localhost:5001/test and
notice that requests are coming on on localhost:5001/v2 and not localhost:5001/test/v2
Describe the results you received:
as described in #190, the url is simply cut off and then you can never reach the endpoint you need to continue.
Describe the results you expected:
I expected this software to behave like this one, which, for example, will request 2 different /.well-known urls before giving up. the one at the root, ./well-known, and then /the/path/given/as/argument/.well-known.
Additional information you deem important (e.g. issue happens only occasionally):
Facing same issue.
From what I've checked there isn't support in docker login cli command for Url. When using private registry is taking the domain name no matter the url address passed as argument.
correct, credentials are stored on a per-host base (so there's no option to store credentials per-path). I recall some discussion around this in the containerd project, and (AFAIK) the current OCI distribution spec requires the /v2/xxx endpoints to be at the root; https://github.com/opencontainers/distribution-spec/blob/v1.0.0/spec.md#api. I'm not familiar with the background on the configuration option in the "distribution" project (it may have been implemented for situations to allow the registry to be hosted on a path, but behind a proxy that rewrites paths).
Description
A docker registry using the distribution project can be configured with a url prefix instead of "/". this then makes it impossible to log in because the
Here's someone facing the same issue.
Steps to reproduce the issue:
http.prefix
) set to/test
, this can be done with a simple docker run command, as these variables are all also read from env vars.docker login localhost:5001/test
andlocalhost:5001/v2
and notlocalhost:5001/test/v2
Describe the results you received:
as described in #190, the url is simply cut off and then you can never reach the endpoint you need to continue.
Describe the results you expected:
I expected this software to behave like this one, which, for example, will request 2 different
/.well-known
urls before giving up. the one at the root,./well-known
, and then/the/path/given/as/argument/.well-known
.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:expand
Additional environment details (AWS, VirtualBox, physical, etc.):
physical. (registry is running in the cloud, its proxied behind nginx, which is where i am seeing the urls it is requesting.
The text was updated successfully, but these errors were encountered: