one-api icon indicating copy to clipboard operation
one-api copied to clipboard

docker 容器的3000端口无法启动,请大神帮忙解决一下

Open etchosts opened this issue 1 year ago • 3 comments

docker容器无法启动,按照issue给方法加了--privileged参数启动,容器里面的3000端口起不来,进容器运行/one-api报main.go record not found 怎么让容器里面的端口起起来? docker 版本20.10.9

etchosts avatar Feb 08 '24 07:02 etchosts

提供一下完成的报错哈

songquanpeng avatar Feb 18 '24 07:02 songquanpeng

提供一下完成的报错哈

[SYS] 2024/02/19 -08:58:51 One API v.5.12-alpha.3 started [SYS]2024/02/19-08:58:51 SQL_DsN not set,using sqLite as database [SYS]2024/02/19-08:58:51 database migration started 2024/02/19 08:58:51 near ")":syntax error near[0.009ms] [rows:0] INSERT INTO user_stemp()' SELECT FROM users` [FATAL] 2024/02/19-08:58:51 | [failed to initialize database: near ")":syntax error]

etchosts avatar Feb 19 '24 01:02 etchosts

操作系统是红帽7.5

etchosts avatar Feb 19 '24 01:02 etchosts