In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "CentOS7 offline deployment docker". In daily operation, I believe many people have doubts about CentOS7 offline deployment docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "CentOS7 offline deployment docker". Next, please follow the editor to study!
1. Environmental preparation
System environment: CentOS Linux release 7.5.1804 (Core)
Install docker version: 17.12.0-ce
2. Prepare the deployment file
Download the following rpm installation package in http://mirrors.163.com/centos/7/os/x86_64/Packages/:
Audit-2.8.4-4.el7.x86_64.rpmaudit-libs-2.8.4-4.el7.x86_64.rpmlibselinux-2.5-14.1.el7.x86_64.rpmlibselinux-python-2.5-14.1.el7.x86_64.rpmlibselinux-utils-2.5-14.1.el7.x86_64.rpmlibsemanage-2.5-14.el7.x86_64.rpmlibsepol-2.5-10.el7.x86 policies 64.rpmpolicycoreutilsMurray 2.5- 29.el7.x86_64.rpmaudit-libs-python-2.8.4-4.el7.x86_64.rpmcheckpolicy-2.5-8.el7.x86_64.rpmlibcgroup-0.41-20.el7.x86_64.rpmlibsemanage-python-2.5-14.el7.x86_64.rpmlibtool-ltdl-2.4.2-22.el7_3.x86_64.rpmpolicycoreutils-python-2.5-29.el7.x86_64.rpmpython-IPy-0.75-6.el7. Noarch.rpmsetools-libs-3.3.8-4.el7.x86_64.rpm
Download the installation package for docker in https://download.docker.com/linux/centos/7/x86_64/stable/Packages/:
Docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm
Download the container-selinux installation package in http://rpm.pbone.net/index.php3/stat/4/idpl/36266349/dir/scientific_linux_7/com/container-selinux-2.9-4.el7.noarch.rpm.html:
Container-selinux-2.9-4.el7.noarch.rpm
After testing, some rpm installation packages in this system need update, and some need install. For this reason, the above rpm packages are divided into update_rpm and install_rpm. The rpm in update_rpm includes:
Audit-2.8.4-4.el7.x86_64.rpmaudit-libs-2.8.4-4.el7.x86_64.rpmlibselinux-2.5-14.1.el7.x86_64.rpmlibselinux-python-2.5-14.1.el7.x86_64.rpmlibselinux-utils-2.5-14.1.el7.x86_64.rpmlibsemanage-2.5-14.el7.x86_64.rpmlibsepol-2.5-10.el7.x86_64.rpmpolicycoreutils-2.5-29.el7.x86_64.rpm
The rpm in install_rpm are:
Audit-libs-python-2.8.4-4.el7.x86_64.rpmcheckpolicy-2.5-8.el7.x86_64.rpmcontainer-selinux-2.9-4.el7.noarch.rpmdocker-ce-17.12.0.ce-1.el7.centos.x86_64.rpmlibcgroup-0.41-20.el7.x86_64.rpmlibsemanage-python-2.5-14.el7.x86_64.rpmlibtool-ltdl-2.4.2-22.el7_3.x86_64. Rpmpolicycoreutils-python-2.5-29.el7.x86_64.rpmpython-IPy-0.75-6.el7.noarch.rpmsetools-libs-3.3.8-4.el7.x86_64.rpm3, Install docker
To update first, you need to update the rpm, that is, execute the following command:
Rpm-Uvh update_rpm/*.rpm
To install the rpm that needs to be installed, execute the following command:
Rpm-ivh install_rpm/*.rpm
Start docker:
Systemctl start docker
Set docker to boot:
Systemctl enable docker
To verify that the installation is successful, enter the following command directly:
Docker version
If the following page appears, the installation is successful!
At this point, the study on "CentOS7 offline deployment of docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.