启动rabbitmq
docker run rabbitmq -p 5672:5672 -p 15672:15672 --name rbq_cn1
查看容器
root@ecs-s6-medium-2-linux-20191230105810:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED NAMES
db7c0ab13d8a rabbitmq:3-management "docker-entrypoint.s…" About a min72/tcp, 0.0.0.0:15672->15672/tcp rabbitmq
进入容器
root@ecs-s6-medium-2-linux-20191230105810:~# docker exec -it db7c0ab13d8a /bin/bash
root@testrabbit:/#
root@testrabbit:/# rabbitmqctl
查看队列
root@testrabbit:/# rabbitmqctl list_queues
Timeout: 60.0 seconds ...
Listing queues for vhost / ...