我已经部署了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
有人可以就如何解决这个问题提出任何建议吗?
答案 0 :(得分:0)
当我在某个docker存储库上启用匿名读取时,我遇到了同样的问题。
存储库 - &gt; Docker托管 - &gt;检查存储库中的复选框(禁用以允许匿名拉取)。
答案 1 :(得分:0)
根据以下情况,您似乎需要将Nexus升级到3.6.1: https://issues.sonatype.org/browse/NEXUS-14488 为了允许匿名阅读