How to find RabbitMQ version inside a mapped volume before RabbitMQ server starts? #727
-
I have a custom script written in bash language. That script will run before Where can I find the RabbitMQ version file within a RabbitMQ container? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here's how I figured this out:
Then...
Then, in the container, I ran
OK, fine, I know this container is running RabbitMQ 3.13.7, so maybe there is something with that version in the name:
OK, that means there will always be a directory with the form Maybe there is a file with
There are quite a few files returned that have
Aha, you can find the current RabbitMQ version by searching for |
Beta Was this translation helpful? Give feedback.
-
rabbitmqctl version will give you the CLI tools version but it is always the same as the RabbitMQ server version (unless you have multiple installations, that is). |
Beta Was this translation helpful? Give feedback.
Here's how I figured this out:
Then...
Then, in the container, I ran
ps -ef
, and noted that RabbitMQ is installed to/opt/rabbitmq
OK, fine, I know this container is running RabbitMQ 3.13.7, so maybe there is something with that version in the name:
OK, that…