Docker installed on Centos7.4

First, install docker

1, Docker system requirements CentOS kernel version higher than 3.10, see this page prerequisite to verify your CentOS version supports Docker.

View your current kernel version uname -r command by

2, log on Centos with root privileges. Ensure that the yum package up to date.

sudo yum update -y

3, installation docker

sudo yum install docker

4, start and join the boot

sudo systemctl start docker
sudo systemctl enable docker

5. Verify that the installation was successful (there are two parts, client service and installation start indicate docker had been successful)

docker version

 

 

 

 

Guess you like

Origin www.cnblogs.com/qk523/p/11248500.html