docker run rabbitmq:latest
#first it will check into locally. if not available then it will pull from internet.
# for RabbitMQ 3.8,
# 3.8.x support timeline: https://www.rabbitmq.com/versions.html
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.8-management
docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq 10.2.4.201/rabbitmq
$ docker run -d --hostname my-rabbit --name some-rabbit rabbitmq:3