實(shí)驗(yàn)環(huán)境:ubuntu 16.04
安裝步驟:
sudo apt-get update
安裝插件:
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
添加官方秘鑰:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
添加repo庫(kù):
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
更新repo:
sudo apt-get update
安裝最新的版本:
sudo apt-get install docker-ce