我刚刚使用Openshift的附录A中的教程安装了Openshift。
已安装,我可以登录Web控制台。我正在尝试创建示例php应用程序。它构建良好,但是当尝试部署映像时,我得到了。
Pushing image docker-registry.default.svc:5000/asdf/myphp:latest ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Warning: Push failed, retrying in 5s ...
Registry server Address:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: After retrying 6 times, Push image still failed
我找到了在第二个节点上运行的docker注册表。我没有看到任何明显的错误。这是注册表日志。
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_ADDR"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PORT"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_PORT_9000_TCP_PROTO"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_HOST"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT"
time="2018-11-10T20:41:16Z" level=warning msg="Ignoring unrecognized environment variable REGISTRY_CONSOLE_SERVICE_PORT_REGISTRY_CONSOLE"
time="2018-11-10T20:41:16.171721924Z" level=info msg="start registry" distribution_version="v2.4.1+unknown" kubernetes_version=v1.6.1+5115d708d7 openshift_version=v3.6.1+269e828-9
time="2018-11-10T20:41:16.17738697Z" level=info msg="OpenShift middleware for storage driver initializing"
time="2018-11-10T20:41:16.177471868Z" level=info msg="redis not configured" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.177629328Z" level=info msg="Starting upload purge in 39m0s" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.190931503Z" level=info msg="using inmemory blob descriptor cache" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.190980234Z" level=info msg="OpenShift registry middleware initializing"
time="2018-11-10T20:41:16.190991255Z" level=info msg="Using Origin Auth handler" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.191007415Z" level=debug msg="configured \"openshift\" access controller" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.191056166Z" level=debug msg="configured token endpoint at \"/openshift/token\"" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
time="2018-11-10T20:41:16.191428563Z" level=info msg="listening on :5000, tls" go.version=go1.7.6 instance.id=e053b81e-0f94-4aa9-98f1-74ff40bbe73a openshift.logger=registry
注册服务说明 名称:docker-registry 命名空间:默认 标签: 注释: 选择器:docker-registry =默认 类型:ClusterIP IP:172.30.166.60 端口:5000-tcp 5000 / TCP 端点:10.130.0.8:5000 会话亲和力:ClientIP 活动:
任何想法都会很棒。