Docker install

参考:https://www.cnblogs.com/caoweixiong/p/12186736.html

 

1 .安装依赖包
yum install -y yum-utils device-mapper-persistent-data lvm2
2. 设置stable镜像仓库
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.更新yum软件包索引
yum makecache fast
4.安装指定版本:
(1)列出
yum list docker-ce.x86_64 --showduplicates | sort -r #从高到低列出Docker-ce的版本
(2)安装命令
yum install docker-ce-3:20.10.0-3.el8
5. systemctl start docker

 
posted @ 2021-03-15 13:09  InvApp  阅读(95)  评论(0编辑  收藏  举报