[root@zh ~]# [root@zh ~]# [root@zh ~]# yum -y install docker 上次元數(shù)據(jù)過(guò)期檢查:0:08:25 前,執(zhí)行于 2020年08月05日 星期三 20時(shí)28分10秒。 未找到匹配的參數(shù): docker 錯(cuò)誤:沒(méi)有任何匹配: docker [root@zh ~]#
首先測(cè)試一下是否能ping通外網(wǎng):
[root@zh ~]# [root@zh ~]# [root@zh ~]# [root@zh ~]# ping www.baodu.com PING www.baodu.com (115.29.223.128) 56(84) bytes of data. 64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=1 ttl=55 time=23.7 ms 64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=2 ttl=55 time=23.6 ms 64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=3 ttl=55 time=23.7 ms 64 bytes from 115.29.223.128 (115.29.223.128): icmp_seq=4 ttl=55 time=23.6 ms ^C --- www.baodu.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 8ms rtt min/avg/max/mdev = 23.637/23.660/23.700/0.024 ms [root@zh ~]#
是可以的。
安裝源:
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
重新測(cè)試:
是可以的。
1. 下載docker-ce的repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
2. 安裝依賴(這是相比centos7的關(guān)鍵步驟)
yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
3. 安裝docker-ce
yum install docker-ce -y
4. 啟動(dòng)docker
systemctl start docker
到此這篇關(guān)于Centos8無(wú)法安裝docker問(wèn)題解決方法的文章就介紹到這了,更多相關(guān)Centos8無(wú)法安裝docker內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
標(biāo)簽:連云港 面試通知 運(yùn)城 隴南 雞西 荊門(mén) 遵義 朝陽(yáng)
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Centos8無(wú)法安裝docker問(wèn)題的解決方法》,本文關(guān)鍵詞 Centos8,無(wú)法,安裝,docker,問(wèn),;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。