CentOS 安装docker-ce

在docker下安装

https://docs.gitlab.cn/jh/install/docker.html

安装所需最小配置

  • 内存至少4G

  • 系统内核至少在3.10以上 uname -r 命令可查看系统内核版本

安装docker

  1. 更新yum源

    yum update
    

      

  2. 安装依赖

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

      

  3. 添加镜像


//国外镜像
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

  

//阿里镜像
https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

 

  1. 查看源中可使用版本

 yum list docker-ce --showduplicates | sort -r

  

  1. 安装指定版本

yum install docker-ce-20.10.9-3.el7

  

  1. 配置开机启动项

systemctl start docker
systemctl enable docker
docker version

  

 

CentOS 8.1 安装docker-ce

http://www.bubuko.com/infodetail-3662731.html

 

1)sudo yum groupinstall "Development Tools"

2)yum install elfutils-libelf-devel

3)重启

4)控制台 --> 设备 --> 安装增强功能

5)kenerl 异常:

https://www.cnblogs.com/iskylite/p/12898051.html

 

posted @ 2020-11-08 20:11  xiluhua  阅读(100)  评论(0编辑  收藏  举报