26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
---
|
||
title: Windows Docker 构建与网络排障经验
|
||
type: experience
|
||
permalink: main/projects/4f53c06a-c6c3-40ec-b2fc-5f019ea45fc0/windows-docker-构建与网络排障经验
|
||
stable_id: d0a91595-3be4-4366-a615-58833dd0dff8
|
||
scope: project
|
||
project_id: 4f53c06a-c6c3-40ec-b2fc-5f019ea45fc0
|
||
memory_type: experience
|
||
status: active
|
||
revision: 1
|
||
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
|
||
created_at: '2026-09-23T14:54:55.626793+00:00'
|
||
updated_at: '2026-09-23T14:54:55.626856+00:00'
|
||
tags:
|
||
- experience
|
||
- windows
|
||
- docker
|
||
- proxy
|
||
- routing
|
||
---
|
||
|
||
- 宿主代理为 127.0.0.1:7897 时,容器内部使用 host.docker.internal:7897;Docker daemon 拉取 FROM 镜像不受 build-arg 代理影响,可使用 m.daocloud.io/docker.io/library/ubuntu:18.04 镜像源。
|
||
- Docker Desktop 重启后先确认 Linux engine、构建镜像和命名卷存在;不要清理 project-cpe 的依赖缓存。
|
||
- node:24-bookworm 包含 Git,能生成正确 Vite 构建元数据;过度精简镜像可能缺 Git。
|
||
- pack-ota.sh 必须以 LF 运行;Windows CRLF 会出现 $'\\r': command not found。
|
||
- CPE USB 网卡可能抢默认路由;Windows 上应保留 CPE 管理网段直连,但提高 CPE 网卡 metric,使公网优先走 WLAN。 |