1. Installation environment
This is installed on Centos7. You can use the following command to view the CentOS version
lsb_release -a
Installing docker on CentOS 7 requires the system to be 64-bit and the system kernel version to be 3.10 or above. You can use the following command to view
uname -r
(Recommended video tutorial: linux Video tutorial)
2. Use yum source to install
2.1 Check whether the docker list has been installed
yum list installed | grep docker
2.2 Install docker
yum -y install docker
-y means not to ask for installation until the installation is successful. After the installation is completed, check the installation list again.
2.3 Start docker
systemctl start docker
2.4 Check the docker service status
systemctl status docker
The above instructions docker installation success.
Recommended tutorial: linux tutorial
The above is the detailed content of How to install docker under linux. For more information, please follow other related articles on the PHP Chinese website!