首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在openshift-origin中启动ubuntu容器

无法在openshift-origin中启动ubuntu容器
EN

Stack Overflow用户
提问于 2016-08-03 17:29:39
回答 1查看 703关注 0票数 0

我试图在openshift的POD中调出一个ubuntu容器。我已经设置了我的本地docker注册表,并相应地配置了DNS。使用docker启动ubuntu容器运行良好,没有任何问题。当我部署POD时,我可以看到我的docker ubuntu镜像被成功拉取,但没有成功启动。由于回退拉取镜像错误而失败。这是因为我的入口点没有任何后台进程在容器中运行吗?

"openshift.io/container.ubuntu.image.entrypoint":“\”顶部\“”,

Snapshot of the events

部署配置:

代码语言:javascript
复制
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
    "name": "ubuntu",
    "namespace": "testproject",
    "selfLink": "/oapi/v1/namespaces/testproject/deploymentconfigs/ubuntu",
    "uid": "e7c7b9c6-4dbd-11e6-bd2b-0800277bbed5",
    "resourceVersion": "4340",
    "generation": 6,
    "creationTimestamp": "2016-07-19T14:34:31Z",
    "labels": {
        "app": "ubuntu"
    },
    "annotations": {
        "openshift.io/deployment.cancelled": "4",
        "openshift.io/generated-by": "OpenShiftNewApp"
    }
},
"spec": {
    "strategy": {
        "type": "Rolling",
        "rollingParams": {
            "updatePeriodSeconds": 1,
            "intervalSeconds": 1,
            "timeoutSeconds": 600,
            "maxUnavailable": "25%",
            "maxSurge": "25%"
        },
        "resources": {}
    },
    "triggers": [
        {
            "type": "ConfigChange"
        },
        {
            "type": "ImageChange",
            "imageChangeParams": {
                "automatic": true,
                "containerNames": [
                    "ubuntu"
                ],
                "from": {
                    "kind": "ImageStreamTag",
                    "namespace": "testproject",
                    "name": "ubuntu:latest"
                },
                "lastTriggeredImage": "ns1.myregistry.com:5000/ubuntu@sha256:6d9a2a1bacdcb2bd65e36b8f1f557e89abf0f5f987ba68104bcfc76103a08b86"
            }
        }
    ],
    "replicas": 1,
    "test": false,
    "selector": {
        "app": "ubuntu",
        "deploymentconfig": "ubuntu"
    },
    "template": {
        "metadata": {
            "creationTimestamp": null,
            "labels": {
                "app": "ubuntu",
                "deploymentconfig": "ubuntu"
            },
            "annotations": {
                "openshift.io/container.ubuntu.image.entrypoint": "[\"top\"]",
                "openshift.io/generated-by": "OpenShiftNewApp"
            }
        },
        "spec": {
            "containers": [
                {
                    "name": "ubuntu",
                    "image": "ns1.myregistry.com:5000/ubuntu@sha256:6d9a2a1bacdcb2bd65e36b8f1f557e89abf0f5f987ba68104bcfc76103a08b86",
                    "resources": {},
                    "terminationMessagePath": "/dev/termination-log",
                    "imagePullPolicy": "Always"
                }
            ],
            "restartPolicy": "Always",
            "terminationGracePeriodSeconds": 30,
            "dnsPolicy": "ClusterFirst",
            "securityContext": {}
        }
    }
},
"status": {
    "latestVersion": 5,
    "details": {
        "causes": [
            {
                "type": "ConfigChange"
            }
        ]
    },
    "observedGeneration": 5
}
EN

回答 1

Stack Overflow用户

发布于 2016-08-09 15:07:20

问题出在http代理上。在解决了这个问题之后,成功地拉取了图像

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

https://stackoverflow.com/questions/38739671

复制
相关文章

相似问题

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