1. Find the RabbitMQ image in the Docker container

    docker ps -a

[root@linux ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8efd6f3add3c chenchuxin/dubbo-admin "Catalina. sh run" 6 weeks ago Up 5 weeks 0.0.0.0:9090->8080/ TCP dubbo-admin 6939b83d0942 ZooKeeper "/ docker - entrypoint...." 6 weeks ago Up 5 weeks zookeeper01 2aec2548a9f8 525bd2016729 "docker-entrypoint.s..." 6 weeks ago Up 5 weeks 0.0.0.0:27017->27017/ TCP docker_mongodb

2. Upload RabbitMq \ _Delayed \ _Message_Exchange-20171201-3.7.x.z to your Linux folder

Download unzip the files at https://download.csdn.net/download/zhangdaiscott/13130449

Copy the plugin file into RabbitMQ’s Docker container

[root@linux ~]# docker cp rabbitmq_delayed_message_exchange-20171201-3.7.x.ez rabbitmq3.7.7:/plugins

Rabbitmq3.7.7bash: Docker exec-it rabbitmq3.7.7bash: Docker exec-it: rabbitmq3.7.7bash

[root@linux ~]# docker exec-it rabbitmq3.7.7 bash :/#

5. View the list of plug-ins

rabbitmq-plugins list

6. Enable the plug-in

rabbitmq-plugins enable rabbitmq_delayed_message_exchange