2016-07-04 248 views
2

我在nexus 3配置中配置了docker注册表。在apache后面运行nexus并启用了https。来自守护进程的错误响应:意外的状态码404

命令行上,当我做了dcoker搜索,我得到下面的错误

搬运工搜索my.nexus.net/ubantu

Error response from daemon: Unexpected status code 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 

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

谢谢

+0

同样的问题,搬运工拉工作正常,但在推操作nexus日志显示DEBUG [qtp1022076555-115] admin org.sonatype.nexus.repository.httpbridge.internal.DefaultHttpResponseSender - 发送响应:响应{状态=状态{成功= false,代码= 404,消息='空'},有效载荷= NULL} –

回答

1

从日志看来,你似乎试图找到不同版本的注册表端点。您是否在存储库配置上使用v1Enabled:false选项?它似乎在v1 ping期间出现错误,但仍然使用该端点。这是相当奇怪的&意外的行为。

enter image description here

0

要使用NXRM3在搬运工做几乎任何事情,你需要指定你正在寻找这样仓库经理知道什么版本库,你正在寻找的端口。如果你只是指定根端口(或者你的情况,看起来像没有端口),NXRM3不知道你在看什么。

所以,如果你的组设置为使用HTTPS连接器18075尝试“泊坞窗搜索my.nexus.net:18075/ubantu”

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

相关问题