[root@zh ~]# [root@zh ~]# [root@zh ~]# yum -y install docker 上次元數據過(guò)期檢查:0:08:25 前,執行于 2020年08月05日 星期三 20時(shí)28分10秒。 未找到匹配的參數: docker 錯誤:沒(méi)有任何匹配: docker [root@zh ~]#
首先測試一下是否能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
重新測試:
是可以的。
1. 下載docker-ce的repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
2. 安裝依賴(lài)(這是相比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內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站