Docker installation RMQ

Original please indicate the source: https://www.cnblogs.com/agilestyle/p/11752934.html

 

Rabbitmq into the mirror of docker hub warehouse address: https://hub.docker.com/_/rabbitmq

 

Select Version with "mangement" (including the web page management) mirrored pull

 

Mirror Pull

1 docker pull rabbitmq:3.8.0-management

 

Start container

1 docker run --name RMQ -v ~/dockerdata/rabbitmq:/var/lib/rabbitmq --hostname myRMQ -e RABBITMQ_DEFAULT_VHOST=my_vhost  -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin -p 5672:5672 -p 15672:15672 -d rabbitmq:3.8.0-management

Note:

--name name specified container
-v map directory or file
--hostname host name (a RabbitMQ important considerations is that it is based on the so-called "node name" stored data, the default is the host name)
-e specifying environment variables; (RABBITMQ_DEFAULT_VHOST: the default virtual machine name; RABBITMQ_DEFAULT_USER: the default user name; RABBITMQ_DEFAULT_PASS: the default user name password)
-d background container
-p port specified service running (5672: application access port; 15672: Web console port numbers)

 

View container

 

Use a browser to open the web management page  http: // localhost: 15672

 

Guess you like

Origin www.cnblogs.com/agilestyle/p/11752934.html