此处白嫖大佬文章
原文地址:传送门:https://blog.csdn.net/q610376681/article/details/90483576?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165318191616781483760773%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=165318191616781483760773&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-90483576-null-null.142^v10^control,157^v4^control&utm_term=docker&spm=1018.2226.3001.4187
1. Docker 要求 CentOS 系统的内核版本高于 3.10,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。
通过 uname -r 命令查看你当前的内核版本
2. 如果安装过请先卸载
yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
3.安装依赖设置yum仓库
安装依赖:
yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
设置仓库:
yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo
安装docker
yum install docker-ce docker-ce-cli containerd.io
启动并加入开机启动
systemctl start docker systemctl enable docker
6.验证是否安装成功
docker version
docker run hello-world
显示如下即安装成功!
标签:2522%,centos8.0,ce,yum,docker,安装,latest From: https://www.cnblogs.com/yzl042349/p/17284047.html