来自守护程序的错误响应:意外的状态代码 404

sta*_*ara 5 docker nexus3

我正在docker registryNexus 3 配置上进行配置。我在 apache 后面运行 Nexus 并启用了 https。

在命令行上,当我执行 a 时docker search,出现以下错误:

docker 搜索 my.nexus.net/ubantu

来自守护程序的错误响应:意外的状态代码 404

这是调试模式下的守护进程日志:

DEBU[7519] Calling GET /images/search 
INFO[7519] GET /v1.19/images/search?term=my.nexus.net%2Fubantu 
DEBU[7519] pinging registry endpoint https://my.nexus.net/v0/
DEBU[7519] attempting v2 ping for registry endpoint https://my.nexus.net/v2/
DEBU[7519] hostDir: /etc/docker/certs.d/my.nexus.net
DEBU[7519] attempting v1 ping for registry endpoint https://my.nexus.net/v1/
DEBU[7519] hostDir: /etc/docker/certs.d/my.nexus.net
DEBU[7519] Error unmarshalling the _ping RegistryInfo: invalid character '<' looking for beginning of value
DEBU[7519] RegistryInfo.Version: ""
DEBU[7519] Registry standalone header: ''
DEBU[7519] RegistryInfo.Standalone: true
DEBU[7519] attempting v1 ping for registry endpoint https://my.nexus.net/v1/
DEBU[7519] hostDir: /etc/docker/certs.d/my.nexus.net
DEBU[7519] Error unmarshalling the _ping RegistryInfo: invalid character '<' looking for beginning of value
DEBU[7519] RegistryInfo.Version: ""
DEBU[7519] Registry standalone header: ''
DEBU[7519] RegistryInfo.Standalone: true
DEBU[7519] Endpoint https://my.nexus.net/v1/ is eligible for private registry. Enabling decorator.
DEBU[7519] Index server: https://my.nexus.net/v1/
DEBU[7519] hostDir: /etc/docker/certs.d/my.nexus.net
ERRO[7519] Handler for GET /images/search returned error: Unexpected status code 404
ERRO[7519] HTTP Error                                    err=Unexpected status code 404 statusCode=500
Run Code Online (Sandbox Code Playgroud)

如果有人对此有任何想法,请告诉我。

Mar*_*kus 3

从日志来看,您似乎尝试固定不同版本的注册表端点。您是否v1Enabled:false在存储库配置中使用了选项?它似乎在 v1 ping 过程中出现错误,但仍然使用该端点。这是相当奇怪和意想不到的行为。

在此输入图像描述