更新readme

This commit is contained in:
whyour 2022-05-26 00:23:25 +08:00
parent ad1ee0d2ef
commit 7a5e6dba51
2 changed files with 41 additions and 2 deletions

View File

@ -73,7 +73,26 @@ podman run -dit \
sudo curl -sSL get.docker.com | sh 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 ```bash
docker run -dit \ docker run -dit \

View File

@ -73,7 +73,27 @@ podman run -dit \
sudo curl -sSL get.docker.com | sh 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 ```bash
docker run -dit \ docker run -dit \