2016-08-03 74 views
0

我試圖在openshift的POD中啓動一個Ubuntu容器。我已經設置了我的本地docker註冊表並相應地配置了DNS。用docker啓動Ubuntu容器可以正常工作,沒有任何問題。當我部署POD時,我可以看到我的docker ubuntu映像已成功啓動,但無法成功啓動。它失敗後退拉圖像錯誤。這是因爲我的入口點沒有任何後臺進程在容器中運行?無法在openshift-origin中啓動Ubuntu容器

「openshift.io/container.ubuntu.image.entrypoint」: 「[\」 頂部\ 「]」,

Snapshot of the events

部署 - 配置:

{ 
"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/[email protected]: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/[email protected]:6d9a2a1bacdcb2bd65e36b8f1f557e89abf0f5f987ba68104bcfc76103a08b86", 
        "resources": {}, 
        "terminationMessagePath": "/dev/termination-log", 
        "imagePullPolicy": "Always" 
       } 
      ], 
      "restartPolicy": "Always", 
      "terminationGracePeriodSeconds": 30, 
      "dnsPolicy": "ClusterFirst", 
      "securityContext": {} 
     } 
    } 
}, 
"status": { 
    "latestVersion": 5, 
    "details": { 
     "causes": [ 
      { 
       "type": "ConfigChange" 
      } 
     ] 
    }, 
    "observedGeneration": 5 
} 
+0

端點不支持v2 API。所以圖像的拉動似乎並不成功。你是從v1註冊表中拉出來的嗎? – lvthillo

回答

0

問題是與http代理。解決圖像拉動成功後

+0

您能否澄清問題所在,讓未來的讀者能從中受益? – FrankerZ