如果出現(xiàn)域名無法解析的情況參考:Ubuntu22配置dns解析_蒼穹之躍的博客-CSDN博客?
目錄
一、安裝必要的一些系統(tǒng)工具
二、安裝GPG證書
三、寫入軟件源信息
四、更新并安裝Docker-CE
五、安裝指定版本的docker-ce
六、看看是否已安裝?
一、安裝必要的一些系統(tǒng)工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
二、安裝GPG證書
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
三、寫入軟件源信息
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
四、更新并安裝Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
五、安裝指定版本的docker-ce
查找Docker-CE的版本
apt-cache madison docker-ce
安裝指定版本的Docker-CE
sudo apt-get -y install docker-ce=VERSION
文章來源:http://www.zghlxwxcb.cn/news/detail-731964.html
六、看看是否已安裝?
sudo -s
docker ps
文章來源地址http://www.zghlxwxcb.cn/news/detail-731964.html
到了這里,關(guān)于Ubuntu22安裝docker的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!