feat: 开源地址改为 Gitee;修 extra_hosts 导致的启动失败
This commit is contained in:
1 parent
dd18ac9ca0
commit
e8c35d1fa8
4 files changed
+10
-5
No files matched your search
@@ -1,5 +1,12 @@
|
||||
# 更新日志
|
||||
|
||||
## 2026-10-27 → ✨ 开源地址改为 Gitee
|
||||
|
||||
- ✨ 右上角、底部常驻横条、页面末尾推广卡片三处「开源地址」统一改为 `https://gitee.com/jinghui111/docker-center`(原为自建 Gitea)
|
||||
- 🔧 同步改掉代码里的两处默认值与 `data/settings.json` 的 `links.repo`,重装/清空配置后也不会退回旧地址
|
||||
- 🔧 修容器启动失败:`docker-compose.yml` 里的 `extra_hosts: host.docker.internal:host-gateway` 在 Docker 28.5.2 上报 `could not parse extra host IP invalid IP`,容器卡在 Created。项目代码从未用到 `host.docker.internal`,直接移除该项,容器恢复正常(healthy)
|
||||
- ✅ 实测:`/api/settings` 返回 gitee 地址;三处链接均为 gitee;页面内已无 `gitea.88531.cn` 残留
|
||||
|
||||
## 2026-10-27 → ✨ 镜像发布能力(多仓库推送脚本 + 文档)
|
||||
|
||||
- ✨ 新增 `scripts/push-image.sh`:一条命令构建并推送,支持 `aliyun` / `tencent` / `dockerhub` / `gitea-lan` / `gitea` / `custom`,可选 `MULTIARCH=1`(amd64+arm64)、`REUSE=1`(复用本地镜像)
|
||||
|
||||
@@ -20,6 +20,4 @@ services:
|
||||
- SAMPLE_MS=3000
|
||||
- INSPECT_MS=15000
|
||||
- SETTINGS_PATH=/data/settings.json
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
mem_limit: 384m
|
||||
+2
-2
@@ -168,7 +168,7 @@ function go(view) {
|
||||
async function renderExtLinks() {
|
||||
const box = document.getElementById('extLinks');
|
||||
if (!box) return;
|
||||
let repo = 'https://gitea.88531.cn/jinghui/docker-center';
|
||||
let repo = 'https://gitee.com/jinghui111/docker-center';
|
||||
let nav = 'https://nav.88531.cn';
|
||||
try {
|
||||
const s = await api('/api/settings');
|
||||
@@ -191,7 +191,7 @@ async function renderExtLinks() {
|
||||
function appendPromoCard() {
|
||||
const v = document.getElementById('view');
|
||||
if (!v || v.querySelector('.promo-card')) return;
|
||||
const repo = (window.__extLinks && window.__extLinks.repo) || 'https://gitea.88531.cn/jinghui/docker-center';
|
||||
const repo = (window.__extLinks && window.__extLinks.repo) || 'https://gitee.com/jinghui111/docker-center';
|
||||
const nav = (window.__extLinks && window.__extLinks.nav) || 'https://nav.88531.cn';
|
||||
const el = document.createElement('div');
|
||||
el.className = 'promo-card';
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@
|
||||
<section id="view" class="view"></section>
|
||||
<footer class="site-foot">
|
||||
<span class="sf-brand">飞牛docker容器管理增强版</span>
|
||||
<a class="sf-link" id="footRepo" href="https://gitea.88531.cn/jinghui/docker-center" target="_blank" rel="noopener">⭐ 开源地址</a>
|
||||
<a class="sf-link" id="footRepo" href="https://gitee.com/jinghui111/docker-center" target="_blank" rel="noopener">⭐ 开源地址</a>
|
||||
<a class="sf-link sf-nav" id="footNav" href="https://nav.88531.cn" target="_blank" rel="noopener">🧭 我的导航站</a>
|
||||
<span class="sf-tip">觉得好用就去点个 Star</span>
|
||||
</footer>
|
||||
|
||||
Reference in new issue
Block a user