报错:

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.
 两个原因

第一个

docker 没有启动

sudo systemctl start docker

第二个用户不再docker用户组里面

sudo gpasswd -a ${USER} docker

如果是第二个,请推出shell 再次登陆

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐