查看linux系統內核版本:docker要求Centos系統的內核版本高於3.10,不然用yum update升級linux系統內核;html
[root@localhost ~]# clearlinux
[root@localhost ~]# uname -rdocker
4.18.0-193.14.2.el8_2.x86_64centos
安裝docker:bash
Yum install dockercurl
報錯:All matches were filtered out by modular filtering for argument: dockerurl
菜鳥:code
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
curl -sSL https://get.daocloud.io/docker | sh
也報錯,說某個依賴低於某個版本;htm
只能如此安裝:blog
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