Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Openshift 获得;无法连接到Docker守护程序";从fabric8中的git repo创建新应用程序时出错_Openshift_Openshift Origin_Fabric8_Openshift Enterprise - Fatal编程技术网

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

Openshift 获得;无法连接到Docker守护程序";从fabric8中的git repo创建新应用程序时出错,openshift,openshift-origin,fabric8,openshift-enterprise,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-148fdbb6eea4

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

为什么会出现此错误?

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

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

service docker restart

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

感谢您的回复,OpenShift运行良好,我已经测试了几个应用程序,但问题是当我在fabric8控制台上进行测试时。Docker在openshift上运行良好。在fabric8问题上有什么帮助吗?