我有一個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