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