Ubuntu使用 APT 安装docker
1.安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
2.安装 GPG 证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
3.写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
4.更新并安装 Docker CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
本文介绍在Ubuntu系统中通过APT安装Docker的具体步骤,包括安装必要的系统工具、GPG证书、写入软件源信息等,并提供了可能遇到的问题及解决办法。
2102

被折叠的 条评论
为什么被折叠?



