gpt4 book ai didi

docker - 来自守护进程 : Unexpected status code 404 的错误响应

转载 作者:行者123 更新时间:2023-12-02 02:15:39 27 4
gpt4 key购买 nike

我正在 Nexus 3 配置上配置 docker 注册表。我在 apache 后面运行 nexus 并启用了 https。

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

docker search my.nexus.net/ubantu

Error response from daemon: Unexpected status code 404

这是 Debug模式下的守护程序日志:

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

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

最佳答案

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

enter image description here

关于docker - 来自守护进程 : Unexpected status code 404 的错误响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38186367/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com