Skip to content

Instantly share code, notes, and snippets.

@zhangysh1995
Forked from jemc/docker_rabbitmqctl.md
Created March 1, 2018 02:54
Show Gist options
  • Select an option

  • Save zhangysh1995/b42ec50a8212ff7e220d7e4f68deb0a9 to your computer and use it in GitHub Desktop.

Select an option

Save zhangysh1995/b42ec50a8212ff7e220d7e4f68deb0a9 to your computer and use it in GitHub Desktop.
Controlling Docker RabbitMQ via rabbitmqctl

Example invocation of a RabbitMQ docker container (use -d instead of -t -i to run in the background):

sudo docker run -t -i --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

Example of controlling the rabbitmq-server inside the container using rabbitmqctl (also inside the container).

sudo docker exec rabbitmq su rabbitmq -- /usr/lib/rabbitmq/bin/rabbitmqctl status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment