docs(dockerfile): 更新 Docker 配置文档格式与测试状态

This commit is contained in:
2026-07-05 21:04:52 +08:00
parent 75443cd39e
commit a70d378b91
+4 -3
View File
@@ -74,7 +74,7 @@ docker run -it --rm \
kenaito-conf-dotnet-demo
```
## Spring Boot 2 客户端
## Spring Boot 2 客户端(测试通过)
```bash
docker build -f Dockerfile.springboot2 -t kenaito-conf-springboot2-demo .
@@ -100,7 +100,7 @@ docker stop springboot2-demo
## 环境变量说明
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
|-------------------------|----------|---------------------------|
| `KENAITO_BASE_URL` | 配置中心地址 | `http://localhost:8080` |
| `KENAITO_APP_NAME` | 应用名称 | `kenaito-springboot-demo` |
| `KENAITO_ENV` | 环境标识 | `daily` |
@@ -111,7 +111,8 @@ docker stop springboot2-demo
## 注意事项
1. **host.docker.internal**:容器内访问宿主机服务时使用 `host.docker.internal:8080`,Linux 系统可能需要添加 `--add-host host.docker.internal:host-gateway`
1. **host.docker.internal**:容器内访问宿主机服务时使用 `host.docker.internal:8080`,Linux 系统可能需要添加
`--add-host host.docker.internal:host-gateway`
2. **网络模式**:如果配置中心也运行在 Docker 中,建议使用自定义网络:
```bash