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

  • 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

  • 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 了