Ubuntu18.04安裝docker (阿里雲鏡像)

1,安裝apt-get系統工具

sudo apt-get update

2,安裝允許apt通過HTTPS使用存儲庫 

sudo apt-get -y 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,寫入軟件源信息

sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

5,更新並安裝Docker-CE

sudo apt-get -y update
sudo apt-get -y install docker-ce

 

發佈了102 篇原創文章 · 獲贊 46 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章