CentOS 7.9 安装 Docker 19.03
2022-04-03 11:08:19
```
$ mkdir /opt; cd /opt
$ wget https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.9-3.el7.x86_64.rpm
$ wget https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-19.03.9-3.el7.x86_64.rpm
$ wget https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/containerd.io-1.3.9-3.1.el7.x86_64.rpm
# 清理原有版本
$ yum remove -y docker* container-selinux
$ yum localinstall -y *.rpm
$ mkdir /etc/docker/
$ vi /etc/docker/daemon.json
{
"graph": "/var/lib/docker",
"insecure-registries":["hub:5000"]
}
$ systemctl daemon-reload
$ systemctl enable docker
$ service docker start
```