问题背景

~$ 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
Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐