Simplest rabbitmq: 3

docker run -d -p 5672:5672 rabbitmq:3

This method, without the management interface, cannot access the background management interface through port 15672

Q: What is the default account password of rabbitmq?
A: The default account password of guest

rabbitmq with admin interface

run rabbitmq:3-management

docker run -d  -p 15672:15672 -p 5672:5672 rabbitmq:3-management

You can also specify the default account password with the following command:

docker run -d  -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:3-management

Reference article:
Downloading and Installing RabbitMQ


universe_king
3.4k 声望678 粉丝