Home  >  Article  >  Operation and Maintenance  >  How to install docker under linux

How to install docker under linux

王林
王林Original
2020-03-25 16:44:462906browse

How to install docker under linux

1. Installation environment

This is installed on Centos7. You can use the following command to view the CentOS version

lsb_release -a

How to install docker under linux

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

How to install docker under linux

(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

How to install docker under linux

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.

How to install docker under linux

2.3 Start docker

systemctl start docker

2.4 Check the docker service status

systemctl status docker

How to install docker under linux

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!

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