我有一个ubuntu 16.04
,我已经安装了docker
和docker-compose
;但是我不能在没有sudo
的情况下运行它们。对于docker
:在Ubuntu上的码头服务权限16.04
docker build -t zizi .
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
对于docker-compose
:
docker-compose build
Building ui
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.
什么是我必须设置权限?
我前几天遇到过类似的问题..我发现了这个,并在其上执行了步骤..希望这有助于https://askubuntu.com/questions/477551/how-can-i-use-docker-without- sudo – rhea