1、官网下载delayed_message插件
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 .