Docker requires that the CentOS kernel version must be higher than 3.10. Now we check the kernel version number.
Command:
uname -a
If the kernel version is smaller than this version, please upgrade the software package and kernel.
Command:
yum update
(Related video tutorial recommendation: linux video tutorial)
Install docker using command (Network)
yum install docker
Next use the command to start docker.
systemctl start docker
Recommended tutorial: linux tutorial
The above is the detailed content of How to install docker in linux environment. For more information, please follow other related articles on the PHP Chinese website!