liyin37

Results 16 comments of liyin37

when I docker login ,the error is the same ![image](https://user-images.githubusercontent.com/42507175/200517780-7d09acb0-7b39-4e13-9973-38f554dac421.png)

@cppla 关键这个文件http://192.168.119.189:8080/json/stats.json 从哪里来的,我没看到呢

感觉和缓存没关系,我无痕也不行,看docker-compose.yml是把json目录挂载出来了,但在主机web/json目录是空的 ![image](https://github.com/user-attachments/assets/b3344442-4021-4910-b213-2161518e2c52)

我是容器部署的,在香港主机上执行,会自动构建镜像,是不是不支持在rocky9上构建镜像

我刚刚又测试了下,用的镜像是:cppla/serverstatus:1.1.5,这个和latest镜像TAG一样的,docker-compose up -d后,访问也是提示json/stats.json没有,有点搞不懂了 ![image](https://github.com/user-attachments/assets/df43ee9e-03ad-457b-b79f-00c9541bb7ad)

容器日志也没有什么错误输出 [root@rocky9 ServerStatus-1.1.5]# docker logs 61137cdd8b4e [server]: Bound to :35601 [main]: OnNewClient(ncid=0, cid=0)

![image](https://github.com/user-attachments/assets/1123a417-34c5-4363-925f-3751e45540ac) 也是空的

哎,我这边用的后面就是您dockerhub上的cppla/serverstatus:1.1.5或者cppla/serverstatus:latest

这个stats.json文件是镜像里面自带的还是后面生成的,用了cppla/serverstatus:latest 直接启动一个,不做映射,容器里面也没有这个文件存在,web/json目录下有个.gitingore,里面是忽略stats.json的

嗯,直接安装,手工编译sergate 文件执行到是有stats.json,为何dockerfile构建或者使用官方的镜像启动就没有这个文件呢,没有研究出来