Docker Docker built environment --- installation (centos7)

Installation docker-ce

1, mounted reliance

docker depends on some necessary tool system can be installed in advance.

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

 

2, add the software source

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

3, mounting docker-ce

1 yum clean all 
2 yum makecache fast
3 yum -y install docker-ce

4, start the service

Start the service by systemctl

systemctl start docker

5. Check installed version

This way the installation is successful, you can use docker version check the current version after starting the service.

1 docker version

As shown below

 

Guess you like

Origin www.cnblogs.com/wdzhz/p/10973263.html