【Docker|Bug】解决docker-compose up -d报错Couldn‘t connect to Docker daemon at http+docker://localhost
解决docker-compose up -d报错Couldn't connect to Docker daemon at http+docker://localhost
·
问题背景
~$ docker-compose up -d
docker-compose up -d
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.
解决方法
# 将用户“xxx”加入到“docker”组中
sudo gpasswd -a ${USER} docker
# 登陆用户 xxx
su xxx
# 执行
docker-compose up -d
更多推荐
已为社区贡献1条内容
所有评论(0)