通過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