新手问题 新人求问,觉得 ruby-china 这个网站很好,想要在公司搭建一套,如何进行搭建

dashuai14 · 2017年08月02日 · 最后由 Showfom 回复于 2017年09月09日 · 1817 次阅读

在网上看了很多信息,但是详细的步骤很少。求具体有个人可以教一下我。 是部署 rubygems 还是 homeload,然后如何对其进行部署。 如果您可以教我的话,感激不尽呀!

huacnlee 回复

root@ubuntu:/home/test/homeland-docker# sudo make install make[1]: Entering directory '/home/test/homeland-docker' secret_key_base=91684c8c77418861c70ecef138c5587bcae4270dce04ed2525a8c1b5e4c4879b make[1]: Leaving directory '/home/test/homeland-docker' ERROR: Couldn't connect to Docker daemon. You might need to install Docker:

https://docs.docker.com/engine/installation/ Makefile:8: recipe for target 'install' failed make: *** [install] Error 1 如果碰到这种情况的话该怎么办,已经装过 docker 了

huacnlee 回复

root@ubuntu:/home/test/homeland-docker# sudo make install make[1]: Entering directory '/home/test/homeland-docker' secret_key_base=91684c8c77418861c70ecef138c5587bcae4270dce04ed2525a8c1b5e4c4879b make[1]: Leaving directory '/home/test/homeland-docker' ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Makefile:8: recipe for target 'install' failed make: *** [install] Error 1

dashuai14 回复

Docker 的问题自己尝试解决,我不可能一个一个指导

你的表现就是 Docker 没启动起来

huacnlee 回复

root@ubuntu:/home/test/homeland-docker# sudo service docker start docker start/running, process 52481 root@ubuntu:/home/test/homeland-docker# sudo make install make[1]: Entering directory '/home/test/homeland-docker' secret_key_base=91684c8c77418861c70ecef138c5587bcae4270dce04ed2525a8c1b5e4c4879b make[1]: Leaving directory '/home/test/homeland-docker' ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Makefile:8: recipe for target 'install' failed make: *** [install] Error 1 我的 docker 是启动了,但是好像是在一个不是标准的地方,但是网上的解释我这边看不懂。 解释基本都是这种: 1) Change the DOCKER_OPTS in /etc/default/docker to:
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
2) Restart docker
sudo restart docker
3) Make sure that docker is running on localhost:4243
$ netstat -ant |grep 4243
tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN
4) Set DOCKER_HOST (.bashrc)
export DOCKER_HOST=tcp://localhost:4243
$ echo $DOCKER_HOST
tcp://localhost:4243
不太懂什么意思

变量环境没设置吧 你系统是精简版? 🌚

需要 登录 后方可回复, 如果你还没有账号请 注册新账号