Does docker support installation using yum?

WBOY
Release: 2022-04-14 19:21:45
Original
4703 people have browsed it

Docker supports installation using yum. Installation method: 1. Use "yum install -y yum-utils..." to install the Device Mapper tool; 2. Configure the yum data source of docker; 3. Use "yum -y install docker" to install it.

Does docker support installation using yum?

The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.

Docker supports installation using yum

Docker supports installation using yum

The installation method is as follows:

Install Device Mapper tool

The installation command is as follows:

yum install -y yum-utils device-mapper-persistent-data lvm2
Copy after login

Configuring the yum data source of docker

The command to configure the yum data source is as follows:

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Copy after login

The configuration is successful as shown below:

Does docker support installation using yum?Update yum cache

The command is as follows:

yum makecache fast
Copy after login

Install docker-ce (Community Edition)

The installation command is as follows:

 yum -y install docker-ce
Copy after login

Start docker

The startup command is as follows:

systemctl start docker
Copy after login

Boot up

systemctl    enable docker.service
Copy after login

Restart:

systemctl restart docker
Copy after login

You can use the following command to verify after startup

 docker -v
Copy after login

The results are as follows:

Does docker support installation using yum?

Recommended learning: "docker video tutorial"

The above is the detailed content of Does docker support installation using yum?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!