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

我正在configurationnexus 3configurationdockerregistry。 正在Apache后面运行nexus并启用了https。

在命令行上,当我做一个dcokersearch,我得到下面的错误

dockersearchmy.nexus.net/ubantu

Error response from daemon: Unexpected status code 404 

这里是守护进程日志在debugging模式。

 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 

如果有人有任何想法,请让我知道。

谢谢

从日志看来,您尝试使用不同版本的registry端点。 您是否在存储库configuration上使用了v1Enabled:false选项? 似乎在v1 ping期间出现错误,但仍然使用该端点。 这是相当奇怪和意外的行为。

在这里输入图像说明

要在使用NXRM3的docker中做任何事情,您需要指定您正在search的端口,以便存储库pipe理器知道您要查找的存储库。 如果你只是指定了根端口(或你的情况,看起来像没有端口),NXRM3不知道你在看什么。

因此,如果您的组设置为使用HTTPS连接器18075,请尝试“docker search my.nexus.net:18075/ubantu”

参考: http : //books.sonatype.com/nexus-book/reference3/docker.html#docker-search