Skip to content

Instantly share code, notes, and snippets.

@yrsdi
Forked from jemc/docker_rabbitmqctl.md
Last active June 25, 2020 22:00
Show Gist options
  • Select an option

  • Save yrsdi/9c99c5e0c9e9a8759b15124f41a8ae7a to your computer and use it in GitHub Desktop.

Select an option

Save yrsdi/9c99c5e0c9e9a8759b15124f41a8ae7a 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):

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).

docker exec rabbitmq rabbitmqctl status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment