From 56a36a0b48a1189654a7638c66f7ec7066069a17 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sun, 27 Jun 2021 01:43:26 +0000 Subject: [PATCH] Mirror changed to Tencent cloud --- ubuntu-cn/Dockerfile | 2 +- ubuntu-cn/Readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu-cn/Dockerfile b/ubuntu-cn/Dockerfile index 65eeb19..e8ab9ca 100644 --- a/ubuntu-cn/Dockerfile +++ b/ubuntu-cn/Dockerfile @@ -1,3 +1,3 @@ FROM ubuntu:20.04 -RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g; s/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list \ +RUN sed -i 's/archive.ubuntu.com/mirrors.cloud.tencent.com/g; s/security.ubuntu.com/mirrors.cloud.tencent.com/g' /etc/apt/sources.list \ && rm -f /etc/apt/apt.conf.d/docker-gzip-indexes diff --git a/ubuntu-cn/Readme.md b/ubuntu-cn/Readme.md index 2fab6af..53fc3ea 100644 --- a/ubuntu-cn/Readme.md +++ b/ubuntu-cn/Readme.md @@ -1,5 +1,5 @@ # ubuntu-cn -apt源更换为 [阿里云 Ubuntu镜像](https://developer.aliyun.com/mirror/ubuntu), 加速大陆用户镜像构建. +apt源更换为 [腾讯云 Ubuntu镜像](http://mirrors.cloud.tencent.com/), 加速大陆用户镜像构建. 移除了 [`docker-gzip-indexes`](https://github.com/moby/moby/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap#L118-L130) 解决部分场景下apt拉取失败的问题.