Basic Docker version of the update, this launch 1.9.1 version of the one-click installation method:
From the Yum installation of CentOS we can see that 1.9.1 Docker has updated multiple components, so you need to be more prepared when you prepare RPM resources so that you don't interrupt the installation because of missing components;
1. Prepare the ISO file:
The RPM package and SH script are placed in the same large directory, using Ultriso software to produce ISO, name can be customized;
Here we follow Ultriso default: Get 20151209_142011.iso
Directory structure: The following are the installation order, not discussed here, a patient friend can follow the RPM test
/dockerstart.sh
/yzdocker/audit-libs-python-2.4.1-5.el7.x86_64.rpm
/yzdocker/checkpolicy-2.1.12-6.el7.x86_64.rpm
/yzdocker/libcgroup-0.41-8.el7.x86_64.rpm
/yzdocker/libcgroup-devel-0.41-8.el7.x86_64.rpm
/yzdocker/libcgroup-pam-0.41-8.el7.x86_64.rpm
/yzdocker/libcgroup-tools-0.41-8.el7.x86_64.rpm
/yzdocker/libsemanage-python-2.1.10-16.el7.x86_64.rpm
/yzdocker/net-tools-2.0-0.17.20131004git.el7.x86_64.rpm
/yzdocker/policycoreutils-python-2.2.5-15.el7.x86_64.rpm
/yzdocker/python-ipy-0.75-6.el7.noarch.rpm
/yzdocker/setools-libs-3.3.7-46.el7.x86_64.rpm
/yzdocker/docker-engine-1.9.1-1.el7.centos.x86_64.rpm
/yzdocker/docker-engine-selinux-1.9.1-1.el7.centos.noarch.rpm
RPM Download Reference
docker:https://yum.dockerproject.org/repo/main/centos/7/packages/
Others: http://mirrors.163.com/centos/7/os/x86_64/Packages/
2. Writing dockerstart.sh Scripts
#! /bin/bashdate "+%y%m%d%h:%m:%s" cd/mnt/cdrom/cp-r/mnt/cdrom/yzdocker//tmp/yzdocker/echo "Copy right,Start Install ... "Cd/tmp/yzdocker/lsrpm-ivh libcgroup-* audit-libs-python-2.4.1-5.el7.x86_64.rpm checkpolicy-2.1.12-6.el7.x86_ 64.rpm libsemanage-python-2.1.10-16.el7.x86_64.rpm python-ipy-0.75-6.el7.noarch.rpm setools-libs-3.3.7-46.el7.x86 _64.RPMRPM-IVH policycoreutils-python-2.2.5-15.el7.x86_64.rpm docker-engine-selinux-1.9.1-1.el7.centos.noarch.rpm RPM-IVH Docker-engine-1.9.1-1.el7.centos.x86_64.rpmservice Docker Startdocker-v
Note: Mount is completed by a one-click command, which copies and automates the installation, finally launches the Docker service and displays the version! You need to use UFT-8 no BOM format to write!
3. Write one-click installation command:
The following actions are required after the optical drive is loaded: Mount, copy, give execute permission, execute SH script, one-click command as follows:
Unlike 1.7.1, we write SH scripts directly in Linux without removing '/R '
Mkdir/mnt/cdrom;mount-t AUTO/DEV/CDROM/MNT/CDROM;CD/MNT/CDROM/;CP Startdocker.sh/tmp;cd/tmp;sh startdocker.sh
4, the practice process: take virtual box as an example, hereinafter referred to as VB
①, VB start CentOS (default minimized installation version)
②, load ISO,VB Select device--Assign optical drive--Virtual disk, select 20151209_142011.iso, confirm and load
③, Xshell login Centos7 or in VB Interface Execution (Xshell can copy commands, more convenient)
# mkdir /mnt/cdrom;mount -t auto /dev/cdrom /mnt/cdrom;cd /mnt/cdrom/;cp startdocker.sh /tmp;cd /tmp;sh startdocker.shmount: /dev/sr0 is Write-protected, mounting read-only20151209 16:07:20start copy yzdocker server installation files...please wait 2-3 mibutescopy right,start install...*** *************************************************************************************************************** Audit-libs-python-2.4.1-5.el7.x86_64.rpm libcgroup-devel-0.41-8.el7.x86_64. rpm policycoreutils-python-2.2.5-15.el7.x86_64.rpmcheckpolicy-2.1.12-6.el7.x86_64.rpm libcgroup-pam-0.41-8.el7.x86_64.rpm python-ipy-0.75-6.el7.noarch.rpmdocker-engine-1.9.1-1.el7.centos.x86_64.rpm Libcgroup-tools-0.41-8.el7.x86_64.rpm setools-libs-3.3.7-46.el7.x86_64.rpmdocker-engine-selinux-1.9.1-1.el7.centos.noarch.rpm libsemanage-python-2.1.10-16.el7.x86_64.rpm tomcat.tarlibcgroup-0.41-8.el7.x86_64.rpm net-tools-2.0-0.17.20131004git.el7.x86_64.rpmwarning: libcgroup-0.41-8.el7.x86_64.rpm: header v3 rsa/sha256 signature, key id f4a80eb5: nokeypreparing... ################################ # [100%]updating / installing... 1:libcgroup-0.41-8.el7 ################################# [ 11%] 2:libcgroup-devel-0.41-8.el7 ###################### ########### [ 22%] 3:libcgroup-pam-0.41-8.el7 ########################### ###### [ 33%] 4:libcgroup-tools-0.41-8.el7 ################################# [ 44%] 5:setools-libs-3.3.7-46.el7 ################################# [ 56%] 6:python-ipy-0.75-6.el7 ############### ################## [ 67%] 7:libsemanage-python-2.1.10-16.el7 ################# ################ [ 78%] 8:checkpolicy-2.1.12-6.el7 ################################# [ 89%] 9: Audit-libs-python-2.4.1-5.el7 ################################# [100%]warning: policycoreutils-python-2.2.5-15.el7.x86_64.rpm: header v3 rsa/sha256 signature, key id f4a80eb5: nokeywarning: docker-engine-selinux-1.9.1-1.el7.centos.noarch.rpm: header v4 rsa/sha512 Signature, key ID 2c52609d: NOKEYPreparing... ################################# [100%]updating / installing... 1 :p olicycoreutils-python-2.2.5-15.e################################# [ 50%] 2: docker-engine-selinux-1.9.1-1.el7################################# [100%]warning: Docker-engine-1.9.1-1.el7.centos.x86_64.rpm: header v4 rsa/sha512 signature, key ID 2c52609d: NOKEYPreparing... ################################# [100%]updating / installing... 1:docker-engine-1.9.1-1.el7.centos ################################# [100%] redirecting to /bin/systemctl start docker.servicedocker version 1.9.1, build a34a1d5
Perfect operation.
The next article will cover one-click deployment of the Docker Tomcat service!
This article is from the "Wang Xiaofu Diary" blog, make sure to keep this source http://wangn.blog.51cto.com/10410653/1721207
Docker 1.9.1 using ISO virtual optical drive One-click installation method