應用商店下載debian
安裝docker
安裝依賴
打開安裝好的docker安裝依賴
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
添加docker的GPG公鑰
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
添加軟件倉庫
sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
$(lsb_release -cs) \
stable"
最后安裝
apt-get update
sudo apt-get install docker-ce
如果提示docker-ce沒有
那就先執行
apt-get install docker
再繼續安裝
安裝成功后啟動
docker run hello-world
# 添加到用戶組
sudo adduser $USER docker
ubuntu 安裝docker更簡單
curl -fsSL https://get.docker.com -o get-docker.sh