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

dashuai14 · August 02, 2017 · Last by Showfom replied at September 09, 2017 · 1803 hits

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

Reply to 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 了

Reply to 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

Reply to dashuai14

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

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

Reply to 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
不太懂什么意思

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

You need to Sign in before reply, if you don't have an account, please Sign up first.