我有一个Jenkins工作,我想为部署运行Select BillNumber,Name,BillNumber From XYZ -- BillNumber should not be twice
。
当我运行它时,我收到错误:
docker-compose up
但是当我作为jenkins用户登录到ssh时,我可以毫无问题地运行[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?
...任何解决方案?我没有运气就试过docker-compose up
。
答案 0 :(得分:3)
我让Sysop在这里做了更改
http://blog.csdn.net/qiyueqinglian/article/details/46559825
然后我加入了我的詹金斯工作export DOCKER_HOST=tcp://localhost:4243
现在可行。