docker-compose build出现问题问题如上

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

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

先查看docker info看看哪儿出错了
docker-compose build出现问题可以看到是权限问题
解决办法
docker-compose build出现问题这里要注意一点
修改之后记得推出终端,或者登出登入用户来更新
然后就可以使用了e
docker-compose build出现问题

相关文章: