首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用私有Docker注册表中的Docker镜像和自签名SSL证书部署到Cloud Foundry?

如何使用私有Docker注册表中的Docker镜像和自签名SSL证书部署到Cloud Foundry?
EN

Stack Overflow用户
提问于 2017-04-03 20:47:19
回答 1查看 654关注 0票数 0

如何将自签名证书添加到Cloud Foundry (PCFDev),以便能够从私有Docker Registry使用Docker Image进行部署?

在本例中,我使用了PCFDev:

代码语言:javascript
复制
user@work:(0):~/Documents/$ cf push app-ui -o nexus-dev/app/app-ui:latest
Creating app app-ui in org pcfdev-org / space pcfdev-space as user...
OK

Creating route app-ui.local.pcfdev.io...
OK

Binding app-ui.local.pcfdev.io to app-ui...
OK


Starting app app-ui in org pcfdev-org / space pcfdev-space as user...
Creating container
Successfully created container
Staging...
Staging process started ...
Failed to talk to docker registry: Get https://nexus-dev/v2/: x509: certificate signed by unknown authority
Failed getting docker image by tag: Error parsing HTTP response: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>\r\n<body bgcolor=\"whit
e\">\r\n<center><h1>400 Bad Request</h1></center>\r\n<center>The plain HTTP request was sent to HTTPS port</center>\r\n<hr><center>nginx/1.10.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n"
Staging process failed: Exit trace for group:
builder exited with error: failed to fetch metadata from [app/app-ui] with tag [latest] and insecure registries [] due to Error parsing HTTP response: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>
400 The plain HTTP request was sent to HTTPS port</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>400 Bad Request</h1></center>\r\n<center>The plain HTTP request was sent to HTTPS port</center>\r\n<hr><center>nginx/1.10.0
 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n"
Exit status 2
Staging Failed: Exited with status 2
Destroying container
Successfully destroyed container

FAILED
Error restarting application: StagingError

TIP: use 'cf logs app-ui --recent' for more information
EN

回答 1

Stack Overflow用户

发布于 2017-04-04 09:16:29

您可以使用-r选项启动pcfdev,例如

代码语言:javascript
复制
cf dev start -r host.pcfdev.io:5000

来自Insecure Docker Registries

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43185066

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档