User and Password creation in official docker image

270 views
Skip to first unread message

sneha panda

unread,
Nov 22, 2021, 10:33:45 AM11/22/21
to rabbitmq-users
Hi,

I am using the image available at docker hub (rabbitmq:3-management). I was going through the dockerfile and entry point but could not get how the user and password creation is happening. 

The confusion starts here, as I don't see rabbitmq by itself support environment variable 
 but in the community image, it does. Below lines from the doc and I have tested also
 
"The administrative user credentials should be stored in a Kubernetes Secret, and mounting them onto the RabbitMQ Pods. The RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS environment variables then can be set to the Secret values. The community Docker image will use them to override default user credentials."

so basically how those env variables are getting used as it is not running rabbitmqctl to create a user (at least could not find in entry point) neither it is storing in different config file from where it is getting loaded . 

Please direct me if I am missing anything on the basic understanding part, will go through that. 
Reply all
Reply to author
Forward
0 new messages