参考:官网文档https://docs.docker.com/install/linux/docker-ce/ubuntu/#prerequisites
系统要求:
- Artful 17.10 (Docker CE 17.11 Edge and higher only)
- Xenial 16.04 (LTS)
- Trusty 14.04 (LTS)
新的Docker分为社区版(CE)和企业版(EE),它们对应的软件包名不同。在安装新版本之前,确认卸载旧版本。
$ sudo apt remove docker docker-engine docker.io
然后确保apt可以使用Https
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 –
X86_64/AMD64
sudo add-apt-repository \
“deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable”
ARMHF
sudo add-apt-repository \
“deb [arch=armhf] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable”
安装Docker CE
apt update
apt install docker-ce
install success
暂无评论