File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,19 @@ https://github.com/user-attachments/assets/15f7f315-003d-4e41-a260-739c2529f824
9393 docker load -i docker_images_xxx.tar
9494 ```
9595</details >
96+ <details >
97+ <summary >镜像拉取完成,但是构建失败</summary >
98+
99+ 如果拉取镜像完成,但是构建失败,基本都是因为依赖的镜像问题,可以尝试修改 ` docker/api.Dockerfile ` (第 31 行左右)中的环境变量,替换为本机的代理地址后,尝试构建。
100+
101+ ``` dockerfile
102+ # 安装依赖项,如果无法成功安装,则尝试是设置此处的代理
103+ ENV HTTP_PROXY=http://IP:PORT \
104+ HTTPS_PROXY=http://IP:PORT \
105+ http_proxy=http://IP:PORT \
106+ https_proxy=http://IP:PORT
107+ ```
108+ </details >
96109
97110<details >
98111 <summary >Milvus 启动失败,执行 `docker compose up milvus -d && docker restart api-dev`</summary >
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
2828COPY ../pyproject.toml /app/pyproject.toml
2929COPY ../.python-version /app/.python-version
3030
31- # 安装依赖项
32- ENV HTTP_PROXY=http://172.19.13.5:7890 \
33- HTTPS_PROXY=http://172.19.13.5:7890 \
34- http_proxy=http://172.19.13.5:7890 \
35- https_proxy=http://172.19.13.5:7890
31+ # 安装依赖项,如果无法成功安装,则尝试是设置此处的代理
32+ # ENV HTTP_PROXY=http://172.19.13.5:7890 \
33+ # HTTPS_PROXY=http://172.19.13.5:7890 \
34+ # http_proxy=http://172.19.13.5:7890 \
35+ # https_proxy=http://172.19.13.5:7890
3636
3737RUN --mount=type=cache,target=/root/.cache/uv \
3838 uv sync --no-install-project
You can’t perform that action at this time.
0 commit comments