我试图将一个docker镜像推送到我的私有Nexus 3注册表。
在推送之前,我尝试进行身份验证: docker login nexus_host:nexus_port
但是我收到了以下错误消息:
Error response from daemon: login attempt to http://nexus_host:nexus_port/v2/ failed with status: 404 Not Found
我的Nexus使用HTTP,因此将其添加到docker不安全的注册表列表中。
- Nexus版本:Nexus Repository Manager OSS 3.9.0-01
- Docker版本:17.09.1-ce(Windows 10)
编辑(08/03/2018):
我使用托管的docker存储库。我应该使用HTTP连接器吗?
Repo Configuration :
Format : docker
Type : hosted
URL : http://192.168.0.90:8082/repository/docker-repo/
HTTP connector port : 1111
Login attempts :
docker login 192.168.0.90:8082
=> Error response from daemon: login attempt to http://192.168.0.90:8082/v2/ failed with status: 404 Not Found
docker login 192.168.0.90:1111
=> 容器引擎错误响应:从守护程序获取https://192.168.0.90:1111/v2/:拨号tcp 192.168.0.90:1111:getsockopt:连接被拒绝