Linux installation environment Docker

System environment:

CentOS 7.6 64 Wei

 

installation steps:

1. Install dependencies

$ yum install -y yum-utils \

        device-mapper-persistent-data \

        lvm2

2. Add yum software source:

$ yum-config-manager \

      --add-repo \

      https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo

3. Install Docker CE

$ yum makecache fast

$ yum install docker-ce

4. Start Docker CE

$ sudo systemctl enable docker

$ sudo systemctl start docker

The acceleration mirror configuration, and edit the new configuration file

$ cd /etc/docker

$ vi daemon.json

{

"registry-mirrors": [

"https://hlef81mt.mirror.aliyuncs.com",

"https://8t4b6eke.mirror.aliyuncs.com"

]

}

6. Restart docker

$ systemctl restart docker

 

Guess you like

Origin www.cnblogs.com/zhizu2/p/11937707.html