Home>Article>Operation and Maintenance> Does docker support installation using yum?

Does docker support installation using yum?

WBOY
WBOY Original
2022-04-14 19:21:45 4682browse

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

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

The configuration is successful as shown below:

Does docker support installation using yum?Update yum cache

The command is as follows:

yum makecache fast

Install docker-ce (Community Edition)

The installation command is as follows:

yum -y install docker-ce

Start docker

The startup command is as follows:

systemctl start docker

Boot up

systemctl enable docker.service

Restart:

systemctl restart docker

You can use the following command to verify after startup

docker -v

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!

Statement:
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
Previous article:Is docker a vps? Next article:Is docker a vps?