ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

通過docker安裝superset過程中,按照文檔中說的步驟:

拉取文件

切換到目標文件夾

然後通過docker-compose 移除停止的superset 然後執行docker-init.sh。命令如下:

docker-compose run --rm superset ./docker-init.sh

報錯信息如下:

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.

解決辦法很簡單,在命令前加上sudo ,給一個超級權限即可。

sudo docker-compose run --rm superset ./docker-init.sh

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章