Introduction to the method of installing docker in linux
This article mainly introduces in detail the method of installing docker in linux. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.
1. Installation environment
Installed here in Centos7, you can view the CentOS version using the following command
Lsb_release-a
Installation of docker on CentOS 7 requires 64-bit system and kernel version 3.10 or above, which can be viewed using the following command
Uname-r
(video tutorial recommendation: linux video tutorial)
2. Install with yum source
2.1 check to see if docker list is installed
Yum list installed | grep docker
2.2 install docker
Yum-y install docker
-y means do not ask for the installation until the installation is successful, and check the installation list again after the installation.
2.3 start docker
Systemctl start docker
2.4 View docker service status
Systemctl status docker
The above indicates that docker was installed successfully.
This is the end of the introduction of the method of installing docker on linux. Of course, it is not just the above and everyone's analysis, but the editor can guarantee its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.