1、拉取镜像,鉴于国内docker环境,建议使用阿里云或其他镜像安装。
阿里云镜像获取方式如下:
a进入开发者页面https://developer.aliyun.com/service
b进入容器镜像服务——管理控制台
c点击镜像加速器,获取镜像地址
分别拉取snarqube和pstgres镜像。也可以使用mysql镜像或已有数据库
docker pull xxxx.mirror.aliyuncs.com/library/sonarqube:latest
docker pull xxxx.mirror.aliyuncs.com/library/postgres:latest
2、启动镜像