In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to install docker-ce in centos7, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Use the official installation script to install automatically
Curl-fsSL https://get.docker.com | bash-s docker-- mirror Aliyun
Manual installation of centos
# step 1: install some necessary system tools sudo yum install-y yum-utils device-mapper-persistent-data lvm2# Step 2: add software source information sudo yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# Step 3: update and install Docker-CEsudo yum makecache fastsudo yum- y install docker-ce# Step 4: enable Docker service sudo service docker start Note: other Notes in the comments below # the official software source enables the latest software by default You can obtain each version of the software package by editing the software source. For example, the official test version of the software source has not been made available, you can open it in the following ways. In the same way, you can open various test versions, etc. # vim / etc/yum.repos.d/docker-ce.repo# modify the enabled=0 under [docker-ce-test] to enabled=1## to install the specified version of Docker-CE:# Step 1: find the version of Docker-CE: # yum list docker-ce.x86_64-- showduplicates | sort-r # Loading mirror speeds from cached hostfile# Loaded plugins: branch, fastestmirror Langpacks# docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable# docker-ce.x86_64 17.03.1.ce-1.el7.centos @ docker-ce-stable# docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable# Available Packages# Step2 : install the specified version of Docker-CE: (VERSION such as 17.03.0.ce.1-1.el7.centos above) # sudo yum-y install docker-ce- [VERSION] # Note: after certain versions Other dependent packages have appeared in the docker-ce installation, please pay attention to the error message if the installation fails. For example, after docker-ce 17.03, you need to install docker-ce-selinux first. # yum list docker-ce-selinux- showduplicates | sort-r # sudo yum-y install docker-ce-selinux- [VERSION] # when installed through classic network and VPC network private network Replace the command # Classic Network in Step 2 with the following command: # sudo yum-config-manager-- add-repo http://mirrors.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo# VPC Network: # sudo yum-config-manager-- add-repo http://mirrors.could.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo above is how to install docker-ce in centos7 The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.