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,
- How to docker remove a container when it exits
- Install Python on Alpine Linux - Docker
- How to Rename Docker Image with none TAG and REPOSITORY?
- Remove all stopped containers in Docker using prune command
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- [fix] Error response from daemon: conflict unable to remove repository reference ubuntu container is using its referenced image
- [Docker] Install Python3 on Alpine Linux
- Unable to find image docker latest locally
- How to Stop/Cancel/kill docker image pull
- How to know the Docker Engine Version
- [fix] Docker: OCI runtime exec failed unable to start container process
- [Solution] Alpine Docker apt-get: not found
- Install and Run Cassandra on Docker Desktop
- Install node on Alpine Linux Docker
- How to Copy files from Docker Container to Host System
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- How to stop and start a docker container
- Docker - Error response from daemon: You cannot remove a running container
- Open Docker Desktop from macOS Terminal
- How to check installed docker version command
- How to know the Docker Sandbox ID of a Container Network?
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
- [Docker] Install Git on Alpine Linux
- Docker MySQL Compose File with Volume Example
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
More Posts:
- Calculate discount amount python code - Python
- Create a Gradle Java Project in VS Code - Gradle
- [Fix] Modern authentication failed here, but youll still be able to sign in. Your status code is 4c7 - Microsoft Teams - Teams
- Python: Append Values as Prefix or Suffix to a Set Elements - Python
- How to delete SNS Topic using AWS CLI - AWS
- [Fix] Java: Type argument cannot be of primitive type generics - Java
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively - MacOS
- Difference between Sublime Text vs Visual Studio Code (VS Code) - Sublime-Text