踩坑记:Docker中sonarqube无法启动
Win10下Docker使用各种不爽,固态太小,虚拟机也不方便。所以买了个500G 的三星SSD装CentOS(这个也很折磨,该踩的坑基本都踩了),进入CentOS后,安装Docker开始了Sonar的踩坑之旅。
1环境说明
CentOS 8
Docker version 19.03.12
本地操作
2更换国内镜像
cat > /etc/docker/daemon.json << EOF
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
EOF
其他镜像网易:http://hub-mirror.c.163.com
阿里:https://cr.console.aliyun.com
docker中国站点:https://registry.docker-cn.com
然后重启
systemctl restart docker
避坑指南1:上述位置为镜像源数组