Install RabbitMQ using Docker
Overview
After completing installation of Docker on Windows in the previous tutorial, will see how to download a specific image or set of images using docker pull command.
Docker Tutorial :
- Install Docker On Windows
- Docker Hello World Example
- Install Prometheus using Docker
- Install Grafana using Docker
- Install RabbitMq using Docker
Q: What is RabbitMQ?
Ans:
RabbitMQ is an open-source message-broker software is also known as message queueing technology. It defines queues to which applications communicate for data transfer, or message transmission. Any kind of information could be included in a message. This message is processed by the recipient application.
What is Docker?
Docker is a set of platform as a service tools that deliver software in containers using OS-level virtualization. Containers are self-contained, containing their own software, libraries, and configuration files, and communicating with one another via well-defined channels. Docker makes it simple for developers to package, ship, and execute any application as a lightweight, portable, self-contained container that can operate almost anywhere.
Pull an image from Docker Hub
Use docker pull to download a specific image or set of images (i.e., a repository). If no tag is specified, Docker Engine defaults to the :latest tag. This command retrieves the latest image:
Using the docker pull command, you can get the RabbitMQ 3-management docker image -
docker pull rabbitmq:3-management
The image ID is a SHA256 digest covering the image's configuration and layers, and Docker uses a content-addressable image store.
For the web application, we will map port 15672 and the message broker port 5672 by using below command.
docker run --rm -it -p 15672:15672 -p 5672:5672 rabbitmq:3-management
You can also notice, it's also starting Erlang.
Once you succeeded, you have a RabbitMQ instance running! Go to website app from the http://localhost:15672.
Login with the default username (guest) and password (guest) and browse the app a little bit.
You can see an overview of RabbitMQ instance and the message broker's basic components: Connections, Channels, Exchanges, and Queues.