rabbitmq is a common message queue, and activemq similar. This article explains the installation by docker rabbitmq.
1, the search rabbitmq
docker search rabbitmq
2, pulling rabbitmq
docker pull rabbitmq:3.7.7-management
3, rabbitmq view mirror
4, start rabbitmq
docker run -d --name rabbitmq3.7.7 -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname localhost -e RABBITMQ_DEFAULT_VHOST=localhost -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin 2888deb59dfc
5, view the status
docker ps
或者
netstat -luntp|grep 15672
6, the test
Open your browser and enter http://92.168.100.192:15672 , we can see the management interface [es Note that the author of the virtual machine ip is 192.168.100.192, the reader is set according to the actual situation].
So far, we have completed the installation rabbitmq in the docker.