使用vhost和队列导出RabbitMQ Docker映像 [英] Export RabbitMQ Docker image with vhost and queues

查看:714
本文介绍了使用vhost和队列导出RabbitMQ Docker映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个rabbitMQ码头容器,我开始使用以下命令:



docker run -d --name myrabbit1 -p 15672: 15672 rabbitmq:3管理



然后我登录到管理插件,创建用户,vhosts,队列等。 b
$ b

我想保存所有这些设置,以便它们再次加载。为此,我尝试提交一个新的图像:



docker commit myrabbit1 vbrabbit:withVhostAndQueues



然后我启动我的新容器(在停止旧容器之后):



docker run -d --name vbrabbit2 -p 15672:15672 -p 5672:5672 vbrabbit:withVhostAndQueues



我希望所有的队列,vhosts等会被保存,但不是。



我缺少什么?



来自 docker ps -a

解决方案


我想保存所有这些设置,以便它们可以再次加载


您是否需要创建容器的副本有相同的设置?



或者您只是寻找 docker stop myrabbit1 然后稍后 docker start myrabbit 再次运行相同的容器?


I have a rabbitMQ docker container that I started using the following command:

docker run -d --name myrabbit1 -p 15672:15672 rabbitmq:3-management

I then loggin to the management plugin and create users, vhosts, queues, etc.

I want to save all those settings so they can be loaded up again. To do that I tried committing to a new image:

docker commit myrabbit1 vbrabbit:withVhostAndQueues

I then start up my new container (after stopping the old one):

docker run -d --name vbrabbit2 -p 15672:15672 -p 5672:5672 vbrabbit:withVhostAndQueues

I expect that all the queues, vhosts, etc would be saved, but they are not.

What am I missing?

Result from docker ps -a:

解决方案

I want to save all those settings so they can be loaded up again

are you needing to create a copy of the container, with the same settings?

or are you just looking to docker stop myrabbit1 and then later docker start myrabbit to run the same container, again?

这篇关于使用vhost和队列导出RabbitMQ Docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆