文章原发布地址https://xiaoyou66.com/archives/2661
本文章为个人博客的备份版本、作者:小游、作者博客:点击访问
其实官网已经有详细的安装教程了,我这里就简单的翻译一下,原版:Install Docker Engine on Ubuntu | Docker Documentation
# 删除旧版本
sudo apt-get remove docker docker-engine docker.io containerd runc
# 更新以及安装必要依赖
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release