- 根据docker官方文档,需要卸载旧版docker
sudo apt-get remove docker docker-engine docker.io containerd runc
- 确保你的linux内核版本高于3.10,且为64位os
uname -r
sudo apt-get update
- 添加使用 HTTPS 传输的软件包以及 CA 证书
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"
sudo apt-get install -y docker-ce
sudo systemctl start docker
systemctl status docker