备注:参考文档 https://docs.docker.com/install/linux/docker-ce/ubuntu/
卸载老的docker版本
sudo apt-get remove docker docker-engine docker.io containerd runc
安装依赖包
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common && sudo apt-get update
添加docker官方GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
添加docker-ce官方仓库
#bionic 为ubuntu的版本
sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu bionic stable"
查看docker-ce版本呢
sudo apt-cache madison docker-ce
安装docker-ce
sudo apt-get install docker-ce=18.06.3~ce~3-0~ubuntu
文档更新时间: 2019-12-04 11:32 作者:张尚