我尝试配置Rabbitmq时Docker构建失败

时间:2019-01-11 05:52:08

标签: docker rabbitmq

我试图在Rabbitmq中配置交换,队列和绑定

我的Dockerfile:

FROM rabbitmq:3-management
RUN apt update
RUN apt install wget zip -y
RUN wget https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171201-3.7.x.zip
RUN unzip rabbitmq_delayed_message_exchange-20171201-3.7.x.zip -d /plugins
RUN ls /plugins
RUN export RABBITMQ_PLUGINS_DIR=/plugins
RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange
COPY definitions.json /definitions.json

错误:

  

http中的文件“ / usr / local / bin / rabbitmqadmin”,第542行   除了ConnectionRefusedError如e:   NameError:未定义全局名称“ ConnectionRefusedError”

1 个答案:

答案 0 :(得分:0)

问题解决了。我忘了指定虚拟主机。