Install RabbitMQ on Docker

In order to install RabbitMQ - an open-source multi-protocol messaging broker on Docker, you can make use of the official RabbitMQ docker image from the docker hub.

Offical RabbitMQ Docker Image:


Steps to install RabbitMQ on Docker:

  1. Open Docker Desktop Application (make sure Docker Desktop is running),
  2. Go to Terminal (macOS/Linux) or Command Prompt (Windows),
  3. Run command to install the latest image:

    docker pull rabbitmq:management

    You would see something like below on the console when you run this command,

    % docker pull rabbitmq:management
    Using default tag: latest
    latest: Pulling from library/rabbitmq
    11e23ac719b3: Pull complete 
    431d6e9b403d: Pull complete 
    39626ae8f80b: Pull complete 
    25839a1a0b4b: Pull complete 
    d4bcf4e7b118: Pull complete 
    c6bfe8c241c9: Pull complete 
    ed028da66fdd: Pull complete 
    857399c434b7: Pull complete 
    ec1ad240cb9c: Pull complete 
    Digest: sha256:11cee94fde46c4ec32a54ae8bb2dd9204172e240f9bf8249e7cc99c9e6c956ea
    Status: Downloaded newer image for rabbitmq:management
  4. Now lets run rabbitMQ on docker and access it via localhost on the host computer,
    docker run -d --hostname uat-rabbitmq --name uat-rabbitmq -p 15672:15672 rabbitmq:management
  5. Open your web browser and type: http://localhost:15672
  6. You should be able to see RabbitMQ Management login page,
  7. As you have not set the username, password, use the default one,
    username: guest
    password: guest
Running RabbitMQ on Docker

To see the logs type: docker logs <name>

% docker logs uat-rabbitmq

2022-06-12 15:20:08.651993+00:00 [info] <0.668.0> Resetting node maintenance status
2022-06-12 15:20:08.662014+00:00 [info] <0.727.0> Management plugin: HTTP (non-TLS) listener started on port 15672
2022-06-12 15:20:08.662132+00:00 [info] <0.755.0> Statistics database started.
2022-06-12 15:20:08.662193+00:00 [info] <0.754.0> Starting worker pool 'management_worker_pool' with 3 processes in it
2022-06-12 15:20:08.667906+00:00 [info] <0.769.0> Prometheus metrics: HTTP (non-TLS) listener started on port 15692
2022-06-12 15:20:08.668017+00:00 [info] <0.668.0> Ready to start client connection listeners
2022-06-12 15:20:08.669802+00:00 [info] <0.813.0> started TCP listener on [::]:5672
2022-06-12 15:20:08.832158+00:00 [info] <0.668.0> Server startup complete; 4 plugins started.
2022-06-12 15:20:08.832158+00:00 [info] <0.668.0>  * rabbitmq_prometheus
2022-06-12 15:20:08.832158+00:00 [info] <0.668.0>  * rabbitmq_management
2022-06-12 15:20:08.832158+00:00 [info] <0.668.0>  * rabbitmq_web_dispatch
2022-06-12 15:20:08.832158+00:00 [info] <0.668.0>  * rabbitmq_management_agent
 completed with 4 plugins.
Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap