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

 

你可能感兴趣的:(docker)