CENTOS7 Building a tutorial on running single instance RABBITMQ within Docker

Source: Internet
Author: User
Tags rabbitmq

1, install the centos7.x, configure a good network
2, because Docker needs to compare the higher version of the kernel, such as the use of OVERLAYFS as the default Docker file system to 3.18, so first upgrade the kernel to 3.18 or above, can directly over 4 is the best
Check the kernel
Uname-r
Not enough 3.18. X Words upgrade kernel
Import Key
RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
RPM-UVH http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Yum--enablerepo=elrepo-kernel Install Kernel-ml-devel kernel-ml-y
General new kernel in Grub's list highest bit so directly
Grub2-set-default 0
You can restart the general.
The kernel version of Centos7 after the current version of the operation is completed
It should be 4.5+.
3, yum-y install Docker-io installation Docker
Chkconfig docker on configuration boot Docker as a service auto-start
Service Docker start starts the Docker service manually
4. Modify Docker's default storage driver for OVERLAYFS This is the latest official recommendation
# Systemctl Stop Docker
# Rm-rf/var/lib/docker//Note as if images may be emptied
Edit/etc/sysconfig/docker-storage
Docker_storage_options=-S Overlay

Sometimes it may not start properly at this time.
Edit the options in the/etc/sysconfig/docker to remove the selinux.

Systemctl Start Docker
Docker info can see the change


Here the basic Docker environment is installed and then a single-node RABBITMQ instance of the Docker container is served:
Docker run--restart always-d--name=rabbitmq1-p 5673:5672-p 15673:15672-p 4369:4369-e rabbitmq_nodename=rabbitmq1-h Rabbitmq1.rabbit.com rabbitmq:3.6.1-management

After a lengthy download wait, the Docker container is up and running.

In this way, a basic single instance of the RABBITMQ that supports HTTP management is built by http://ip:15673 user name password default Admin permissions for guest Guest.

CENTOS7 Building a tutorial on running single instance RABBITMQ within Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.