我试图在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”
答案 0 :(得分:0)
问题解决了。我忘了指定虚拟主机。