标签:ocs zhang man 特定 lvm python install yun root
官网安装教程: https://docs.docker.com/engine/install/centos/
1. 查看内核版本
[root@centos zhangjie]# uname -a Linux centos 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
2. 安装依赖软件包
[root@centos zhangjie]# yum install -y yum-utils device-mapper-persistent-data lvm2
3. 设置yum源(任选一个)
[root@centos zhangjie]#yum-config-manager --add-repo http://download.docker.com/linux/centos/docker-ce.repo(中央仓库)
[root@centos zhangjie]#yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo(阿里仓库)
4. 查看所有仓库中所有docker版本,并选择特定版本安装
[root@centos zhangjie]# yum list docker-ce --showduplicates | sort -r
5. 安装Docker,命令:yum install docker-ce-版本号
[root@centos zhangjie]# yum install docker-ce-18.03.1.ce
6. 启动Docker, 命令: systemctl start docker,然后加入开机启动
[root@centos zhangjie]# systemctl start docker
[root@centos zhangjie]# systemctl enable docker
[root@centos zhangjie]# docker version
标签:ocs zhang man 特定 lvm python install yun root
原文地址:https://www.cnblogs.com/featherwit/p/12931264.html