非root用户执行docker-compose up时遇到报错:
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
解决办法:
添加docker用户组
sudo groupadd docker
将当前用户加入组
sudo usermod -aG docker ${USER}
重启docker服务
sudo systemctl restart docker
断开shell重新连接后执行docker-compose up