1.下載鏡像(management版本的才帶有web管理界面)node
docker pull rabbitmq:3.7.18-management
2.建立容器(監聽端口:5672,web管理界面端口:15672)web
docker run -p 5672:5672 -p 15672:15672 rabbitmq:3.7.18-management
3.使用默認用戶名、密碼:guest/guest 登錄docker
http://localhost:15672
... node : rabbit@f6f28fc2ed83 home dir : /var/lib/rabbitmq config file(s) : /etc/rabbitmq/rabbitmq.conf cookie hash : eCDH3G9Sfgoa5Q2+g1nENw== log(s) : <stdout> database dir : /var/lib/rabbitmq/mnesia/rabbit@f6f28fc2ed83 ... 2019-09-26 04:09:41.702 [info] <0.520.0> started TCP listener on [::]:5672 2019-09-26 04:09:41.702 [info] <0.238.0> Running boot step direct_client defined by app rabbit 2019-09-26 04:09:41.724 [info] <0.570.0> Management plugin: HTTP (non-TLS) listener started on port 15672 ...
Dockerhub 地址:https://hub.docker.com/_/rabbitmqcookie