Skip to content

容器方式安装后 ignite 无法进入,ignite-admin正常 #29

@wz-wong

Description

@wz-wong

你好,我用容器方式安装后, ignite 面板无法进入, 管理界面正常
经检测 5000 端口关闭状态, 8000正常开启
有空的话麻烦指出下是什么问题.
docker ps
"./ignite" About a minute ago Up 58 seconds 0.0.0.0:5000->5000/tcp ignite
"./ignite-admin" About an hour ago Up 58 seconds 0.0.0.0:8000->8000/tcp ignite-admin
netstat -ntlp 服务器端口正常监听
tcp6 :::8000 :::* LISTEN 1277/docker-proxy
tcp6 :::5000 :::* LISTEN 1264/docker-proxy
电脑测端口, 8000正常, 5000不通
telnet xx.xx.xx.xx 8000
telnet xx.xx.xx.xx 5000

不知道什么原因,导致 5000 端口无法使用,下面是我的 docker 配置文件
environment:
- HOST_ADDRESS=123.123.123.123 # ip这样格式的
- HOST_FROM=5001
- HOST_TO=6000
ports:
- "5000:5000"
environment:
- AUTH_USERNAME=123
- AUTH_PASSWORD=123
- Auth_SECRET=ignite2017
ports:
- "8000:8000" 其他无改变
docker log 参考
docker logs -f 容器id
config: map[address::5000 db_driver:sqlite3 db_connect:./data/ignite.db host_address:123.123.123.123 host_from:5001 host_to:6000]
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /panel/logout --> github.com/go-ignite/ignite/controllers.(*MainRouter).LogoutHandler-fm (5 handlers)
[GIN-debug] POST /panel/create --> github.com/go-ignite/ignite/controllers.(*MainRouter).CreateServiceHandler-fm (5 handlers)
[GIN-debug] Listening and serving HTTP on :5000
[xorm] [info] 2019/09/19 11:42:20.291986 PING DATABASE sqlite3
latest: Pulling from goignite/ss-libev
Digest: sha256:fe5f894899aa434ee79e071877c86b3e07016edc3c9430e5684da0e75ddd2be0
Status: Image is up to date for goignite/ss-libev:latest
latest: Pulling from goignite/ssr
Digest: sha256:8c0dafd9902c341527c0d3b8f2812efa43ae9928c2299fecba8ed2da9abf9ab2
Status: Image is up to date for goignite/ssr:latest

希望能对你解决问题有所帮助.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions