docker search rocketmq
NAME DEscriptION STARS OFFICIAL AUTOMATED foxiswho/rocketmq rocketmq 64 rocketmqinc/rocketmq Image repository for Apache RocketMQ 53 styletang/rocketmq-console-ng rocketmq-console-ng 35 apacherocketmq/rocketmq Docker Image for Apache RocketMQ 19 rocketmqinc/rocketmq-broker Customized RocketMQ Broker Image for RocketM… 11 rocketmqinc/rocketmq-namesrv Customized RocketMQ Name Server Image for Ro… 9 leixuewen/rocketmq 基于 rocketmq 最新版制作,可快速部署单机和集群 7 apacherocketmq/rocketmq-console This repo has moved to rocketmq-dashboard, w… 6 xlxwhy/rocketmq alibaba's rocketmq 4 apacherocketmq/rocketmq-broker Apache RocketMQ docker image for broker. 3 king019/rocketmq rocketmq 3 apacherocketmq/rocketmq-dashboard Docker Image for Apache RocketMQ Dashboard 2 apacherocketmq/rocketmq-nameserver Apache RocketMQ docker image for name server. 2 pangliang/rocketmq-console-ng 2
选择评分较高的镜像,查询镜像版本
curl https://registry.hub.docker.com/v1/repositories/foxiswho/rocketmq/tags | tr -d '[[]" ]' | tr '}' 'n' | awk -F: -v image='foxiswho/rocketmq' '{if(NR!=NF && != ""){printf("%s:%sn",image,)}}'
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 966 0 966 0 0 371 0 --:--:-- 0:00:02 --:--:-- 371 foxiswho/rocketmq:4.7.0 foxiswho/rocketmq:4.8.0 foxiswho/rocketmq:base-4.3.0 foxiswho/rocketmq:base-4.3.2 foxiswho/rocketmq:base-4.4.0 foxiswho/rocketmq:base-4.5.0 foxiswho/rocketmq:base-4.5.1 foxiswho/rocketmq:base-4.5.2 foxiswho/rocketmq:base-4.6.1 foxiswho/rocketmq:broker foxiswho/rocketmq:broker-4.3.2 foxiswho/rocketmq:broker-4.4.0 foxiswho/rocketmq:broker-4.5.0 foxiswho/rocketmq:broker-4.5.1 foxiswho/rocketmq:broker-4.5.2 foxiswho/rocketmq:broker-4.6.1 foxiswho/rocketmq:broker-4.7.0 foxiswho/rocketmq:server foxiswho/rocketmq:server-4.3.2 foxiswho/rocketmq:server-4.4.0 foxiswho/rocketmq:server-4.5.0 foxiswho/rocketmq:server-4.5.1 foxiswho/rocketmq:server-4.5.2 foxiswho/rocketmq:server-4.6.1 foxiswho/rocketmq:server-4.7.0二、拉取镜像
选择对应版本镜像,拉取nameserver、broker镜像
docker pull foxiswho/rocketmq:server-4.7.0 docker pull foxiswho/rocketmq:broker-4.7.0三、建立映射目录
mkdir -p /data/rocketmq/server01/logs mkdir -p /data/rocketmq/server01/store mkdir -p /data/rocketmq/broker01/logs mkdir -p /data/rocketmq/broker01/store mkdir -p /data/rocketmq/broker01/conf四、建立配置文件
在 /data/rocketmq/broker01/conf 目录下创建 broker.conf 文件,内容如下:
namesrvAddr=127.0.0.1:9876 brokerClusterName = DefaultCluster brokerName = broker-a brokerId = 0 deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH brokerIP1 = 192.168.0.185 listenPort=10911五、启动服务
启动nameserver
docker run -d -p 9876:9876 --name mqserver01 -e "JAVA_OPT_EXT=-server -Xms512m -Xmx512m -Xmn512m" -v /data/rocketmq/server01/logs:/opt/logs -v /data/rocketmq/server01/store:/opt/store foxiswho/rocketmq:server-4.7.0
启动broker
docker run -it -d --net host --name mqbroker01 -e "JAVA_OPT_EXT=-server -Xms512m -Xmx512m -Xmn512m" -v /data/rocketmq/brocker01/conf/broker.conf:/etc/rocketmq/broker.conf -v /data/rocketmq/brocker01/logs:/opt/logs -v /data/rocketmq/brocker01/store:/opt/store --privileged=true foxiswho/rocketmq:broker-4.7.0六、安装管理工具
安装 rocketmq-console-ng
docker pull styletang/rocketmq-console-ng
启动 rocketmq-console-ng
docker run -e "JAVA_OPTS=-Drocketmq.namesrv.addr=192.168.0.185:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -p 8082:8080 -t styletang/rocketmq-console-ng
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)