用国内镜像安装docker 和 docker-compose (ubuntu)
compose
compose - Docker Compose是一个用于定义和运行多容器Docker应用程序的工具,通过Compose文件格式简化应用部署过程。
项目地址:https://gitcode.com/gh_mirrors/compose/compose
免费下载资源
·
替代方案,改用国内的镜像站(网易镜像)
1.清除旧版本(可选操作)
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do apt-get remove $pkg; done
2.安装docker
apt-get update
首先安装依赖
apt-get install ca-certificates curl gnupg
信任 Docker 的 GPG 公钥并添加仓库:
install -m 0755 -d /etc/apt/keyrings
关键来了:
curl -fsSL https://mirrors.163.com/docker-ce/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
最后安装
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
3.安装docker-compose
apt install docker-compose
GitHub 加速计划 / compose / compose
33.28 K
5.15 K
下载
compose - Docker Compose是一个用于定义和运行多容器Docker应用程序的工具,通过Compose文件格式简化应用部署过程。
最近提交(Master分支:3 个月前 )
5e3a0953
full diff: https://github.com/docker/cli/compare/v27.4.0-rc.1...8d1bacae3e49ed1d096eede8eef4ae851d7f2eae
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
5 天前
a2a3eb72
- full diff: https://github.com/docker/cli/compare/cb3048fbebb1...v27.4.0-rc.1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
5 天前
更多推荐
已为社区贡献2条内容
所有评论(0)