From 7a5e6dba519baca1e363287053f286dbdf1e6cdd Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 26 May 2022 00:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-en.md | 21 ++++++++++++++++++++- README.md | 22 +++++++++++++++++++++- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/README-en.md b/README-en.md index c170772b..978acb4b 100644 --- a/README-en.md +++ b/README-en.md @@ -73,7 +73,26 @@ podman run -dit \ sudo curl -sSL get.docker.com | sh ``` -2. start the container +2. configure domestic mirror sources + +```bash +mkdir -p /etc/docker +tee /etc/docker/daemon.json <<-'EOF' +{ + "registry-mirrors": [ + "https://0b27f0a81a00f3560fbdc00ddd2f99e0.mirror.swr.myhuaweicloud.com", + "https://ypzju6vq.mirror.aliyuncs.com", + "https://registry.docker-cn.com", + "http://hub-mirror.c.163.com", + "https://docker.mirrors.ustc.edu.cn" + ] +} +EOF +systemctl daemon-reload +systemctl restart docker +``` + +3. start the container ```bash docker run -dit \ diff --git a/README.md b/README.md index d10df79d..8ac6b8d8 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,27 @@ podman run -dit \ sudo curl -sSL get.docker.com | sh ``` -2. 启动容器 +2. 配置国内镜像源 +Configure domestic mirror sources + +```bash +mkdir -p /etc/docker +tee /etc/docker/daemon.json <<-'EOF' +{ + "registry-mirrors": [ + "https://0b27f0a81a00f3560fbdc00ddd2f99e0.mirror.swr.myhuaweicloud.com", + "https://ypzju6vq.mirror.aliyuncs.com", + "https://registry.docker-cn.com", + "http://hub-mirror.c.163.com", + "https://docker.mirrors.ustc.edu.cn" + ] +} +EOF +systemctl daemon-reload +systemctl restart docker +``` + +3. 启动容器 ```bash docker run -dit \