增加readme.md docker加速源配置方法
This commit is contained in:
parent
91290802a8
commit
b1b0531e47
31
README.md
31
README.md
|
|
@ -197,6 +197,37 @@ docker pull ghcr.nju.edu.cn/lintsinghua/deepaudit-sandbox:latest
|
|||
|
||||
> 💡 镜像源由 [南京大学开源镜像站](https://mirrors.nju.edu.cn/) 提供支持
|
||||
|
||||
<details>
|
||||
<summary>💡 配置 Docker 镜像加速(可选,进一步提升拉取速度)(点击展开)</summary>
|
||||
|
||||
如果拉取镜像仍然较慢,可以配置 Docker 镜像加速器。编辑 Docker 配置文件并添加以下镜像源:
|
||||
|
||||
**Linux / macOS**:编辑 `/etc/docker/daemon.json`
|
||||
|
||||
**Windows**:右键 Docker Desktop 图标 → Settings → Docker Engine
|
||||
|
||||
```json
|
||||
{
|
||||
"registry-mirrors": [
|
||||
"https://docker.1ms.run",
|
||||
"https://dockerproxy.com",
|
||||
"https://hub.rat.dev"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
保存后重启 Docker 服务:
|
||||
|
||||
```bash
|
||||
# Linux
|
||||
sudo systemctl restart docker
|
||||
|
||||
# macOS / Windows
|
||||
# 重启 Docker Desktop 应用
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
> 🎉 **启动成功!** 访问 http://localhost:3000 开始体验。
|
||||
|
||||
---
|
||||
|
|
|
|||
31
README_EN.md
31
README_EN.md
|
|
@ -173,6 +173,37 @@ Using pre-built Docker images, no need to clone code, start with one command:
|
|||
curl -fsSL https://raw.githubusercontent.com/lintsinghua/DeepAudit/v3.0.0/docker-compose.prod.yml | docker compose -f - up -d
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>💡 Configure Docker Registry Mirrors (Optional, for faster image pulling) (Click to expand)</summary>
|
||||
|
||||
If pulling images is still slow, you can configure Docker registry mirrors. Edit the Docker configuration file and add the following mirror sources:
|
||||
|
||||
**Linux / macOS**: Edit `/etc/docker/daemon.json`
|
||||
|
||||
**Windows**: Right-click Docker Desktop icon → Settings → Docker Engine
|
||||
|
||||
```json
|
||||
{
|
||||
"registry-mirrors": [
|
||||
"https://docker.1ms.run",
|
||||
"https://dockerproxy.com",
|
||||
"https://hub.rat.dev"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Restart Docker service after saving:
|
||||
|
||||
```bash
|
||||
# Linux
|
||||
sudo systemctl restart docker
|
||||
|
||||
# macOS / Windows
|
||||
# Restart Docker Desktop application
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
> **Success!** Visit http://localhost:3000 to start exploring.
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Reference in New Issue