查看linux系统内核版本:docker要求Centos系统的内核版本高于3.10,否则用yum update升级linux系统内核;
[root@localhost ~]# clear
[root@localhost ~]# uname -r
4.18.0-193.14.2.el8_2.x86_64
安装docker:
Yum install docker
报错:All matches were filtered out by modular filtering for argument: docker
菜鸟:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
curl -sSL https://get.daocloud.io/docker | sh
也报错,说某个依赖低于某个版本;
只能如此安装:
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
但是:安装超时了。。
于是:yum list docker-ce --showduplicates | sort -r 列出了所有的能安装的版本;
再于是:yum -y install docker-ce-18.06.0.ce-3.el7
来源:oschina
链接:https://my.oschina.net/u/4415996/blog/4774655