Ali cloud ECS CentOS7 installation docker-ce

1, CentOS7 installation Docker, system requirements CentOS kernel version higher than 3.10, core edition:

[root@all~]# uname -r

2, yum update package

[root@all ~]#  yum -y update

3, uninstall the old version docker

[root@all ~]#  yum remove docker docker-common docker-selinux docker-engine

4, install the necessary number of system tools

# Yum-utils provides configuration management of yum

# Devicemapper-persistent-data storage drive and lvm2 is required devicemapper

[root@all ~]#  yum install -y yum-utils device-mapper-persistent-data lvm2

5, configuration Docker stable release warehouse

[root@all ~]#  yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

6. Update Package Index

[root@all ~]#  yum makecache fast

7, the installation Docker CE

 [root@all ~]#  yum -y install docker-ce

8, open Docker service

[root@all ~]#  service docker start

9, see the Docker CE installation was successful

[root@all ~]# docker version

Published 80 original articles · won praise 96 · views 360 000 +

Guess you like

Origin blog.csdn.net/Alen_xiaoxin/article/details/104850553