How to install docker under linux

王林
Release: 2020-03-25 16:44:46
Original
2993 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

How to install docker under linux

2.2 Install docker

yum -y install docker
Copy after login

-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
Copy after login

2.4 Check the docker service status

systemctl status docker
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template