Nexus 3.6 OSS Docker Hub代理 - 可以停靠搜索但不能停靠码头

问题描述 投票:0回答:2

我已经部署了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"

我的jetty 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

有人可以提供任何有关如何解决此问题的建议吗?

proxy nexus dockerhub sonatype nexus3
2个回答
0
投票

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

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.