[英]docker compose and jenkins
I have a Jenkins job I want to run docker-compose up
for a deployment. 我有一个Jenkins工作,我想运行
docker-compose up
for a deployment。 When I run it I get the error: 当我运行它时,我收到错误:
[workspace] $ /bin/sh -xe /tmp/hudson5937783564331081987.sh
+ export DOCKER_HOST=tcp://localhost:4243
+ DOCKER_HOST=tcp://localhost:4243
+ /usr/bin/docker-compose up
Couldn't connect to Docker daemon at http://localhost:4243 - is it running?
but when I login as the jenkins user into the ssh, i can run docker-compose up
without a problem...Any solution? 但是当我作为jenkins用户登录到ssh时,我可以运行docker
docker-compose up
而没有问题...任何解决方案? I tried export DOCKER_HOST=tcp://localhost:4243
without luck. 我尝试
export DOCKER_HOST=tcp://localhost:4243
没有运气。
I had the Sysop do the changes here 我让Sysop在这里做了改变
http://blog.csdn.net/qiyueqinglian/article/details/46559825 http://blog.csdn.net/qiyueqinglian/article/details/46559825
then I put in my jenkins job 然后我投入了我的詹金斯工作
export DOCKER_HOST=tcp://localhost:4243
Now it works. 现在它有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.