Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Docker online with Docker Yum Source in CentOS7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "CentOS7 how to use Docker Yum source to install Docker online", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "CentOS7 how to use Docker Yum source to install Docker online" article.

Installation steps

Delete installed docker

# uninstall installed dockersudo yum remove docker\ docker-client\ docker-client-latest\ docker-common\ docker-latest\ docker-latest-logrotate\ docker-logrotate\ docker-selinux\ docker-engine-selinux\ docker-engine

Configure Ali Cloud docker yum source

# set up repositorysudo yum install-y yum-utils device-mapper-persistent-data lvm2# use aliyun dockersudo yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Install the specified version

View the docker version:

Yum list docker-ce-showduplicates

When installing older versions (such as docker 17.03.2), you need to specify the package name of the complete rpm package and add the-- setopt=obsoletes=0 parameter:

# install docker# on a new system with yum repo defined, forcing older version and ignoring obsoletes introduced by 17.06.0yum install-y-- setopt=obsoletes=0\ docker-ce-17.03.2.ce-1.el7.centos.x86_64\ docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch

Or add the version number of the rpm package name when installing a newer version of docker (such as docker 18.03.0):

Sudo yum install docker-ce-18.03.0.ce

Or install the latest version of docker without adding the version number:

Sudo yum install docker-ce

Start the docker service

# start docker servicesystemctl enable dockersystemctl start docker above is the content of this article on "how to install Docker online with Docker Yum sources in CentOS7". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to learn more about related knowledge, 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report