using rabbitmq from docker code example
Example 1: rabbitmq docker
docker run -d --name my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
Example 2: install rabbitmq docker image
docker run rabbitmq:latest
#first it will check into locally. if not available then it will pull from internet.