sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

windows 上 docker 启动应用后,8080端口无法访问

Open aiyolo opened this issue 8 months ago • 1 comments

使用方法 在docker中拉取镜像,然后启动容器

启动日志

[GIN-debug] GET    /setup/status             --> github.com/Wei-Shaw/sub2api/internal/setup.getStatus (4 handlers)

[GIN-debug] POST   /setup/test-db            --> github.com/Wei-Shaw/sub2api/internal/setup.testDatabase (5 handlers)

[GIN-debug] POST   /setup/test-redis         --> github.com/Wei-Shaw/sub2api/internal/setup.testRedis (5 handlers)

[GIN-debug] POST   /setup/install            --> github.com/Wei-Shaw/sub2api/internal/setup.install (5 handlers)

2026-03-05T08:32:51.796Z	WARN	stdlog	Warning: CORS allowed_origins not configured; cross-origin requests will be rejected.	{"service": "sub2api", "env": "bootstrap", "legacy_stdlog": true}

2026-03-05T08:32:51.796Z	INFO	stdlog	Setup wizard available at http://0.0.0.0:8080/	{"service": "sub2api", "env": "bootstrap", "legacy_stdlog": true}

2026-03-05T08:32:51.796Z	INFO	stdlog	Complete the setup wizard to configure Sub2API	{"service": "sub2api", "env": "bootstrap", "legacy_stdlog": true}

aiyolo avatar Mar 05 '26 08:03 aiyolo

Docker是不是用了host模式的网络,看一下启动参数

StarryKira avatar Mar 05 '26 09:03 StarryKira