安裝步驟:
- 更新Ubuntu的apt源索引
sudo apt-get update
- 安裝包允許apt通過HTTPS使用倉庫
sudo dpkg --configure -a
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
- 添加Docker官方GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 設定Docker穩定版倉庫
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- 更新apt源索引
sudo apt-get update
- 安裝最新版本Docker CE(社區版)
sudo apt-get install docker-ce
- 查看安裝Docker的版本
docker --version
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/296771.html
標籤:其他
上一篇:演算法總結-直接插入排序
