Public | Automated Build

Last pushed: 2 years ago
Short Description
Rabbitmq Container - Service running at 5672 and Rabbitmq Management Web Interface at 15672, Optionally set password with RABBITMQ_PASS or Random password get generated (see logs)
Full Description


Base docker image to run a RabbitMQ server


To create the image admatic/rabbitmq, execute the following command on the tutum-rabbitmq folder:

sudo docker build -t admatic/rabbitmq .

Running the RabbitMQ server

Run the following command to start rabbitmq:

docker run -d -p 5672:5672 -p 15672:15672 admatic/rabbitmq

The first time that you run your container, a new random password will be set.
To get the password, check the logs of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

You can now connect to this RabbitMQ server using, for example:

    rabbitmqadmin -u admin -p 5elsT6KtjrqV -H <host> -P <port> list vhosts

Please remember to change the above password as soon as possible!

In this case, 5elsT6KtjrqV is the password set.
You can then connect to RabbitMQ:

rabbitmqadmin -u admin -p 5elsT6KtjrqV -P 15672 list vhosts


Setting a specific password for the admin account

If you want to use a preset password instead of a randomly generated one, you can
set the environment variable RABBITMQ_PASS to your specific password when running the container:

docker run -d -p 5672:5672 -p 15672:15672 -e RABBITMQ_PASS="mypass" tutum/rabbitmq

You can now test your new admin password:

rabbitmqadmin -u admin -p mypass -P 15672 list vhosts
Docker Pull Command
Source Repository