欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 游戏 > Ubuntu 18.04 安装docker-ce

Ubuntu 18.04 安装docker-ce

2025/2/25 1:31:45 来源:https://blog.csdn.net/qianzhitu/article/details/144501703  浏览:    关键词:Ubuntu 18.04 安装docker-ce

官方安装教程地址:Ubuntu | Docker Docs 

官方设置apt仓库命令:

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc# Add the repository to Apt sources:
echo \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

 如果出现如下问题

root@mysql-4-51:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl: (7) Failed to connect to download.docker.com port 443: Connection timed out
gpg: no valid OpenPGP data found.

参考如下方案解决:Ubuntu安装docker-ce添加GPG密钥失败解决方案_添加 docker 的官方 gpg 密钥失败-CSDN博客

再执行执行官方安装命令:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词