apt-get update
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
Ubuntu安装Docker
最新推荐文章于 2025-10-23 22:51:01 发布
本文详细介绍了一种在Ubuntu系统中安装Docker的方法。通过使用apt-get更新软件包索引并安装必要的依赖项,然后添加Docker的官方GPG密钥和APT存储库,最后完成Docker引擎、CLI和containerd的安装。
183

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



