赞
踩
FROM rabbitmq:latest
MAINTAINER LUCKY
# 添加插件到指定目录 可按照此方式自行扩展其他插件
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
ADD ./rabbitmq_delayed_message_exchange-3.12.0.ez /plugins
# 开启管理界面插件
RUN rabbitmq-plugins enable rabbitmq_management
# 开启延迟队列插件
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
ENTRYPOINT ["rabbitmq-server"]
version: '3.5' services: rabbitmq: #restart: always container_name: rabbitmq build: context: . ports: - "15672:15672" - "5672:5672" volumes: - ./data:/var/lib/rabbitmq - ./logs:/var/log/rabbitmq environment: - RABBITMQ_DEFAULT_USER=admin - RABBITMQ_DEFAULT_PASS=123456 network_mode: "bridge"
#8 [rabbitmq 4/4] RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange #8 1.687 Enabling plugins on node rabbit@buildkitsandbox: #8 1.687 rabbitmq_delayed_message_exchange #8 2.111 Error: #8 2.111 Failed to enable some plugins: #8 2.111 rabbitmq_delayed_message_exchange: #8 2.111 Plugin doesn't support current server version. Actual broker version: "3.9.11", supported by the plugin: ["3.11.0-3.11.x"] #8 2.111 #8 ERROR: process "/bin/sh -c rabbitmq-plugins enable rabbitmq_delayed_message_exchange" did not complete successfully: exit code: 70 ------ > [rabbitmq 4/4] RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange: 1.687 Enabling plugins on node rabbit@buildkitsandbox: 1.687 rabbitmq_delayed_message_exchange 2.111 Error: 2.111 Failed to enable some plugins: 2.111 rabbitmq_delayed_message_exchange: 2.111 Plugin doesn't support current server version. Actual broker version: "3.9.11", supported by the plugin: ["3.11.0-3.11.x"] 2.111 ------ failed to solve: process "/bin/sh -c rabbitmq-plugins enable rabbitmq_delayed_message_exchange" did not complete successfully: exit code: 70
# 添加插件到指定目录 可按照此方式自行扩展其他插件
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases
ADD ./rabbitmq_delayed_message_exchange-3.12.0.ez /plugins
搭建rabbitmq并开启管理界面和延迟队列
centos7 docker安装rebbitmq及插件
rabbitmq rabbitmq-delayed-message-exchange Publi
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。