在将大三角帆与Nexus集成时,我遇到了问题。 基本上,这是我的过程-使用Jenkins构建docker映像并上传到Nexus。接下来,要基于Nexus上可用的新映像触发大三角帆管道,以在kubernetes上部署应用程序。
我已经使用了这两个命令
hal config provider docker-registry enable
hal config provider docker-registry account add my-docker-registry \
--address <pvtIP>:9082 \
--repositories repository/<repoName> \
--username <userName> \
--password
出现以下错误
+ Get current deployment
Success
- Add the my-docker-registry account
Failure
Problems in default.provider.dockerRegistry.my-docker-registry:
! ERROR Unable to fetch tags from the docker repository:
repository/test-docker-snapshots/, Unrecognized SSL message, plaintext
connection?
? Can the provided user access this repository?
- WARNING None of your supplied repositories contain any tags.
Spinnaker will not be able to deploy any docker images.
? Push some images to your registry.
- Failed to add account my-docker-registry for provider
dockerRegistry.
是否必须在HTTPS上建立联系?我在http上运行,并且仅在内部网络中使用...
请告知..谢谢..
答案 0 :(得分:1)
如果您的nexus存储库正在HTTP上运行,则应在命令中设置--insecure-registry
标志。因此,您的最终命令将如下所示:
hal config provider docker-registry account add my-docker-registry \
--address <pvtIP>:9082 \
--repositories repository/<repoName> \
--insecure-registry true \
--username <userName> \
--password