2、编辑Dockerfile:
#vim Dockerfile
From rabbitmq:3-management
COPY rabbitmq_delayed_message_exchange-20171201-3.7.x.ez /plugins
RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange
3、构建镜像
#docker build -t rabbitmq:3-management-delayed .
Docker 为rabbitmq添加delayed_message插件
原文:https://blog.51cto.com/bilibili/2432928