Home>Article>Operation and Maintenance> Does docker support installation using yum?
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.
The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.
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:
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:
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!