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:
Link: https://registry.hub.docker.com/_/rabbitmq/
Steps to install RabbitMQ on Docker:
- Open Docker Desktop Application (make sure Docker Desktop is running),
- Go to Terminal (macOS/Linux) or Command Prompt (Windows),
- 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 docker.io/library/rabbitmq:latest
- 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
- Open your web browser and type: http://localhost:15672
- You should be able to see RabbitMQ Management login page,
- As you have not set the username, password, use the default one,
username: guest password: guest

To see the logs type: docker logs <name>
Example:% 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.
More Posts related to Docker,
- Install RabbitMQ on Docker
- How to know docker Engine details
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
- How to know list of images available on your device
- How to check installed docker version command
- [Docker] Install Python3 on Alpine Linux
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- How to Stop/Cancel/kill docker image pull
- Install and Run Cassandra on Docker Desktop
- [fix] Cannot connect to the Docker daemon at unix:var/run/docker.sock. Is the docker daemon running?
- Connect to local macOS/Windows localhost (127.0.0.1) from within Docker Container Image
- Unable to find image docker latest locally
- Open Docker Desktop from macOS Terminal
More Posts:
- Location of eclipse.ini file on Mac OS X - Mac-OS-X
- How to migrate SharePoint Designer 2010 workflow to Power Automate FLOW (Microsoft Office 365) - SharePoint
- Calculate Volume of Pyramid - C-Program
- Send Extra Data with Ajax Get or Post Request - JavaScript
- Tesla hit by a complete network and mobile app outage - 23 Sept 2020 11am ET (US and Europe) - News
- 30+ Zoom video communications application shortcuts for macOS - MacOS
- How to customize SharePoint Modern list form using JSON formatting - SharePoint
- Remove items from JavaScript array - JavaScript