获取"无法连接到Docker守护程序"在fabric8中从git repo创建新应用程序时出错

时间:2017-05-02 11:04:54

标签: openshift openshift-origin fabric8 openshift-enterprise

我在openshift origin 3.3上设置fabric8,fabric8版本是"版本0.4.121"。无论我在fabric8中尝试从git repo创建新应用程序,都会出现此错误:

[firstapp-testapp] Running shell script Executing shell script inside container [maven] of pod [kubernetes-085de53dd4cb4cfe990a727e68371b63-148fdbb6eea48] Executing command: sh -c echo $$ > '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/pid'; jsc=durable-f46e5a369ce24d99986ef5171a328446; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/script.sh'
> '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/jenkins-result.txt' [?1034hsh-4.2# cd /home/jenkins/workspace/firstapp-testapp sh-4.2# sh
-c echo $$ > '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2  c8f03/pid'; jsc=durable-f46e5a369ce24d99986ef5171a328446; JENKINS_SERVER_COOKIE=  $jsc '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/script.sh'
>   '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/jenkins-log.txt' 2 
>&1; echo $? > '/home/jenkins/workspace/firstapp-testapp@tmp/durable-0d2c8f03/jen  kins-result.txt' 
+ docker tag accenture/firstapp-testapp:1.0.4 172.30.158.59:80/accenture/firstapp-testapp:1.0.4 Cannot connect to the Docker daemon. Is the docker daemon running on this host? sh-4.2# exit exit script returned exit code 1

为什么我会收到此错误?

2 个答案:

答案 0 :(得分:0)

由于内部OpenShift问题,发生错误。 请确保您的OpenShift实例已正确安装。

为此,您可以从目录部署其中一个示例应用程序。 要手动修复此问题,可以在OpenShift机器上执行以下语句

service docker restart

答案 1 :(得分:0)

您是否尝试从容器中调用docker?您需要更改SCC来执行此操作,但我不建议这样做。可能有更好的方法来完成同样的事情。

相关问题