网上的不太全,我做了一些补充,参考:
https://www.jianshu.com/p/882d37ca831f
https://blog.csdn.net/zhangzhi1979815592/article/details/122673110
首先,准备一个你要临时放置脚本的目录(文件夹),该目录和docker镜像没啥关系,位置不影响你后续使用
第一步:下载脚本
git clone https://github.com/apache/rocketmq-docker.git
第二步:
进入到image-build目录下,执行sh命令
cd image-build
sh build-image.sh 4.9.2 centos
sh