【rabbitmq】搭建rabbitmq启用插件报错

配置

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

你可能感兴趣的:(通用表单,java)