Install RabbitMQ using Docker
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 :
Q: What is RabbitMQ?
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.
You can also notice, it's also starting Erlang.
docker run --rm -it -p 15672:15672 -p 5672:5672 rabbitmq:3-management
Once you succeeded, you have a RabbitMQ instance running! Go to website app from the http://localhost:15672.