0

我在 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

为什么我会收到此错误?

4

2 回答 2

0

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

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

service docker restart
于 2017-05-02T15:17:47.727 回答
0

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

于 2017-05-03T19:56:03.470 回答