1.更新apt庫(kù)
sudo apt update
2.以下安裝使得允許apt通過(guò)HTTPS使用存儲(chǔ)庫(kù)
sudo apt install apt-transport-https ca-certificates curl software-properties-common
3.添加阿里GPG秘鑰
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
4.添加阿里docker源
sudo add-apt-repository \
"deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
5.更新apt源
sudo apt update
6.安裝
sudo apt install -y docker-ce
7.測(cè)試運(yùn)行
sudo docker run hello-world
8.查看版本
docker --version
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。