Installation docker step centos7

Centos installed directly mounted VM virtual machine, memory 1G, directly to my IP address configuration better [before] used centos6.5 manually configured, wait for the installation successfully ping about Baidu, no problem

1. Check the kernel,

uname -r

2, if less than 3.10, perform the upgrade command

yum update

3, install the required packages. Execute the following command

yum install -y yum-utils device-mapper-persistent-data lvm2

4, provided yum source (select one), Ali cloud recommendation, a little faster

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

5. View the warehouse all versions docker, select an installation

yum list docker-ce --showduplicates | sort -r

yum install docker-ce-18.03.1.ce

6, start docker, set to boot from the start

systemctl start docker

systemctl enable  docker

7, see the version number docker

docker version

Guess you like

Origin www.cnblogs.com/yibao/p/12207960.html