Docker容器管理--ubuntu安装docker
更新:HHH   时间:2023-1-7


Ubuntu14.06/16.04

安装证书

sudo apt-get install \
apt-transport-https \
a-certificates \
curl \
software-properties-common

添加Docker源的KEY

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

添加Docker软件包源

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

更新apt包索引

sudo apt-get update

安装

sudo apt-get install docker-ce

卸载

sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker

返回云计算教程...