title: How to add initial users when starting a RabbitMQ Docker container?
body: <p>Currently i am starting RabbitMQ Docker container using the default RabbitMQ image from <a href="https://registry.hub.docker.com/_/rabbitmq/" rel="noreferrer">DockerHub</a>. Using the following commands.</p>
  
  <pre><code>docker run --restart=always \
  -d \
  -e RABBITMQ_NODENAME=rabbitmq \
  -v /opt/docker/rabbitmq/data:/var/lib/rabbitmq/mnesia/rabbitmq \
  -p 5672:5672 \
  -p 15672:15672 \
  --name rabbitmq rabbitmq:3-management
  </code></pre>
  
  <p>I have a need where i want to provide defaults users / and virtual-hosts when the image is first started. For example to create a default 'test-user'.</p>
  
  <p>Currently i have to do that manually by using the management plugin and adding the users / virtual-hosts via the web ui. Is there a way i can provide default settings when starting the RabbitMQ image?</p>