A detailed introduction to deploying RabbitMQ environment with docker

A detailed introduction to deploying RabbitMQ environment with docker

Prerequisites:

Docker is already installed

1. Find the image (there are 2 ways)

①Log in to the rabbitmq official website to find the docker image and select the tag of the image you want

https://www.rabbitmq.com/download.html

https://hub.docker.com/_/rabbitmq

If you need to access the web management page, select the tag management

ps: The one with alpine is built with the smallest Linux image, and the smallest size can be 5M. Beginners are not recommended to do so. In addition, Alpine Linux uses musl. The DNS service implemented by musl will not use the search and domain configurations in the resolv.conf file. You need to pay attention when performing service discovery through DNS. , with -management is a web console

② Use docker search to search directly. The default download tag is latest (the web management page cannot be opened)

[testhadoop@sz-145-centos101 ~]$ sudo docker search rabbitmq
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
rabbitmq RabbitMQ is an open source multi-protocol ... 2691 [OK]       
bitnami/rabbitmq Bitnami Docker Image for RabbitMQ 30 [OK]
tutum/rabbitmq Base docker image to run a RabbitMQ server 19                   
frodenas/rabbitmq A Docker Image for RabbitMQ 12 [OK]
kbudde/rabbitmq-exporter rabbitmq_exporter for prometheus 11 [OK]
arm32v7/rabbitmq RabbitMQ is an open source multi-protocol ... 7                    
cyrilix/rabbitmq-mqtt RabbitMQ MQTT Adapter 7 [OK]
gonkulatorlabs/rabbitmq DEPRECATED: See maryville/rabbitmq 5 [OK]
aweber/rabbitmq-autocluster RabbitMQ with the Autocluster Plugin 4                    
pivotalrabbitmq/rabbitmq-autocluster RabbitMQ with the rabbitmq-autocluster plugin                    
pivotalrabbitmq/rabbitmq-server-buildenv Image used to build and test RabbitMQ serv... 3                    
authentise/rabbitmq A RabbitMQ image that will run a bash script... 2 [OK]
deadtrickster/rabbitmq_prometheus RabbitMQ + Prometheus RabbitMQ Exporter pl... 2                    
henrylv206/rabbitmq-autocluster RabbitMQ Cluster 2 [OK]
riftbit/rabbitmq3 RabbitMQ 3.x Container based on Alpine Lin... 1

ps: If you log in as a normal user, you need sudo, otherwise an error will be prompted

[testhadoop@sz-145-centos101 ~]$ docker search rabbitmq
Get http:///var/run/docker.sock/v1.19/images/search?term=rabbitmq: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

2. Download the image (sometimes the network problem times out, just try a few more times. I chose the tag that can access the web management interface)

sudo docker pull rabbitmq:management

3. Create a container and run it (15672 is the port of the management interface, 5672 is the port of the service. Here, set the username and password of the management system to admin admin)

docker run -dit --name Myrabbitmq -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin -p 15672:15672 -p 5672:5672 rabbitmq:management

This is the end of this article about deploying RabbitMQ environment with docker. For more information about deploying RabbitMQ environment with docker, please search previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Docker installation and configuration steps for RabbitMQ
  • How to deploy rabbitmq cluster with docker
  • How to build a rabbitmq cluster environment with docker
  • Detailed steps to install RabbitMQ in docker

<<:  Solution to the CSS height collapse problem

>>:  Solutions for high traffic websites

Recommend

MySQL backup and recovery design ideas

background First, let me explain the background. ...

JavaScript implements the detailed process of stack structure

Table of contents 1. Understanding the stack stru...

MySQL 8.0.13 installation and configuration tutorial under CentOS7.3

1. Basic Environment 1. Operating system: CentOS ...

Shell script settings to prevent brute force ssh

The shell script sets access control, and the IP ...

Install CentOS 7 on VMware14 Graphic Tutorial

Introduction to CentOS CentOS is an enterprise-cl...

How to insert a link in html

Each web page has an address, identified by a URL...

Linux unlink function and how to delete files

1. unlink function For hard links, unlink is used...

Complete steps to install MySQL 8.0.x on Linux

MySQL Introduction to MySQL MySQL was originally ...

Zabbix monitoring solution - the latest official version 4.4 [recommended]

Zabbix 2019/10/12 Chenxin refer to https://www.za...

Ubuntu installation cuda10.1 driver implementation steps

1. Download cuda10.1: NVIDIA official website lin...

Analysis of the principles of Mysql dirty page flush and shrinking table space

mysql dirty pages Due to the WAL mechanism, when ...

Detailed explanation of where the images pulled by docker are stored

The commands pulled by docker are stored in the /...

Teach you how to insert 1 million records into MySQL in 6 seconds

1. Idea It only took 6 seconds to insert 1,000,00...

How to encapsulate axios in Vue project (unified management of http requests)

1. Requirements When using the Vue.js framework t...