加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

docker – 找不到openshift v3 pod文件

发布时间:2020-12-16 03:26:54 所属栏目:安全 来源:网络整理
导读:我正在测试Openshift Origin v3.我按照说明将它安装为docker容器.我还在角色/ openshift_examples / files / examples / image-streams / image-streams-centos7.json中部署了所有流. 我现在通过从Github部署虚拟php应用程序来测试安装.我能够创建项目和应用

我正在测试Openshift Origin v3.我按照说明将它安装为docker容器.我还在角色/ openshift_examples / files / examples / image-streams / image-streams-centos7.json中部署了所有流.

我现在通过从Github部署虚拟php应用程序来测试安装.我能够创建项目和应用程序.但是,构建处于“待定”状态.在事件选项卡中,我看到很多类似这样的消息:

"Unable to mount volumes for pod "hello-world-1-build_php1": 
IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/9377d3b4-9887-
11e5-81fe-00215abe5482/volumes/kubernetes.io~secret/builder-dockercfg-x2ijq-
push"): file does not exist (5 times in the last 40 seconds)"

我也尝试使用java应用程序和tomcat docker镜像,但得到了相同的错误消息.看起来像Kubernetes配置问题.

有任何想法吗?

谢谢你的帮助

UPDATE1:
来自原始容器的日志显示有关错误的更多信息:

Unable to mount volumes for pod "deployment-example-2-deploy_test1": IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/70f69f8c-98d3-11e5-8d98-00215abe5482/volumes/kubernetes.io~secret/deployer-token-8cfv8"): file does not exist; skipping pod
E1202 09:12:24.269145    4396 pod_workers.go:113] Error syncing pod 70f69f8c-98d3-11e5-8d98-00215abe5482,skipping: IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/70f69f8c-98d3-11e5-8d98-00215abe5482/volumes/kubernetes.io~secret/deployer-token-8cfv8"): file does not exist
W1202 09:12:34.229374    4396 kubelet.go:1690] Orphaned volume "ac11a2b5-9880-11e5-81fe-00215abe5482/builder-dockercfg-va0cl-push" found,tearing down volume
E1202 09:12:34.287847    4396 kubelet.go:1696] Could not tear down volume "ac11a2b5-9880-11e5-81fe-00215abe5482/builder-dockercfg-va0cl-push": IsLikelyNotMountPoint("/var/lib/origin/openshift.local.volumes/pods/ac11a2b5-9880-11e5-81fe-00215abe5482/volumes/kubernetes.io~secret/builder-dockercfg-va0cl-push"): file does not exist

原始容器开头的日志条目:

202 09:12:13.992293    4396 start_master.go:278] assetConfig.loggingPublicURL: invalid value '',Details: required to view aggregated container logs in the console
W1202 09:12:13.992442    4396 start_master.go:278] assetConfig.metricsPublicURL: invalid value '',Details: required to view cluster metrics in the console
I1202 09:12:14.784026    4396 plugins.go:71] No cloud provider specified.
I1202 09:12:14.981775    4396 start_master.go:388] Starting master on 0.0.0.0:8443 (v1.1-270-ge592c18)
I1202 09:12:14.981825    4396 start_master.go:389] Public master address is https://192.168.178.55:8443
I1202 09:12:14.981855    4396 start_master.go:393] Using images from "openshift/origin-

UPDATE2

$sudo docker -v
Docker version 1.9.1,build a34a1d5

$cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
NAME="Ubuntu"
VERSION="14.04.3 LTS,Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.3 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

@Clayton:你能分享一下有关应该在1.10修复的挂载错误的链接吗?谢谢!

最佳答案
您使用的操作系统和Docker版本是什么?旧版本的Docker上存在卷安装的已知问题 – OpenShift / Kube将卷安装到容器中,但是当Docker运行OpenShift时,库存Docker版本隐藏了对根安装的访问.红帽操作系统带有一个补丁,使其工作,据说Docker 1.10将进行正确的修复.替代方案是直接下载二进制文件,然后使用sudo openshift start启动它.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读