執行: docker-compose up -d
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://blog.csdn.net/qq_41527782/article/details/83411125
1、如果還沒有 docker group 就添加一個 sudo groupadd docker 2、將用戶加入該 group 內。然后退出並重新登錄就生效啦。 sudo gpasswd -a ${USER} docker 3、重啟 docker 服務 sudo service docker restart 4、切換當前會話到新 group 或者重啟 X 會話 newgrp - docker 注意:最后一步是必須的,否則因為 groups 命令獲取到的是緩存的組信息,剛添加的組信息未能生效,所以 docker images 執行時同樣有錯。