Skip to content

How to find RabbitMQ version inside a mapped volume before RabbitMQ server starts? #727

Closed Answered by lukebakken
joe-agent asked this question in Q&A
Discussion options

You must be logged in to vote

Here's how I figured this out:

 docker run --name rabbitmq-727 --pull always  --rm -it -p 15672:15672 -p 5672:5672 rabbitmq:3-management

Then...

docker exec --interactive --tty rabbitmq-727 /bin/bash

Then, in the container, I ran ps -ef, and noted that RabbitMQ is installed to /opt/rabbitmq

root@5fc460a67742:/# ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
rabbitmq       1       0  0 15:50 pts/0    00:00:00 /bin/sh /opt/rabbitmq/sbin/rabbitmq-server

OK, fine, I know this container is running RabbitMQ 3.13.7, so maybe there is something with that version in the name:

root@cc2e562f3321:/opt/rabbitmq# find . -name '*3.13*'
...
...
./plugins/rabbit-3.13.7
...
...

OK, that…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@michaelklishin
Comment options

Answer selected by lukebakken
Comment options

You must be logged in to vote
2 replies
@joe-agent
Comment options

@michaelklishin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants