1

我已经部署了 Nexus OSS 3.6,它在http://server:8082/nexus上提供服务

我已经使用http://www.sonatype.org/nexus/2017/02/16/using-nexus-3-as-your-repository-part-3-docker-images/中的说明配置了一个 docker-hub 代理并已将 docker-group 配置为在端口 18000 下服务

我可以执行以下操作:

docker login server:18000
docker search server:18000/jenkins 

但是当我运行时:

docker pull server:18000/jenkins 

我收到以下错误:

Error response from daemon: Get http://10.105.139.17:18000/v2/jenkins/manifests/latest: 
error parsing HTTP 400 response body: invalid character '<' 
looking for beginning of value: 
"<html>\n<head>\n<meta http-equiv=\"Content-Type\" 
content=\"text/html;charset=ISO-8859-1\"/>\n<title>
Error 400 </title>\n</head>\n<body>\n<h2>HTTP ERROR: 400</h2>\n
<p>Problem accessing /nexus/v2/token. 
Reason:\n<pre>    Not a Docker request</pre></p>\n<hr />
<a href=\"http://eclipse.org/jetty\">Powered by Jetty:// 9.3.20.v20170531</a><hr/>\n
</body>\n</html>\n"

我的码头 nexus.properties 配置文件是:

# Jetty section
application-port=8082
application-host=0.0.0.0
# nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
nexus-context-path=/nexus

# Nexus section
# nexus-edition=nexus-pro-edition
# nexus-features=\
#  nexus-pro-feature

有人可以就如何解决这个问题提供任何建议吗?

4

2 回答 2

2

当我在某个 docker 存储库上启用匿名读取时,我遇到了同样的问题。

存储库-> Docker 托管-> 选中存储库中的复选框(禁用以允许匿名拉取)。

于 2017-10-10T14:07:45.127 回答
0

似乎您需要根据以下内容将 Nexus 升级到 3.6.1: https ://issues.sonatype.org/browse/NEXUS-14488 以允许再次匿名阅读

于 2017-12-22T10:28:42.263 回答