记录一下错误解决:

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 的权限
使用root身份运行或者将现在用户添加到docker组中来解决此问题
sudo usermod -a -G docker $USER
另一个原因是可能还没有启动docker
sudo systemctl enable docker
sudo systemctl start docker
End。