Docker gogs started with an error message
itcastJava opened this issue · 3 comments
Gogs version
latest
Git version
- Server:
- Client:
Operating system
debian12
Database
MySQL8.0.36
Describe the bug
root@debian12:/home/debian/桌面# docker run --name=gogs -p 10022:22 -p 10880:3000 -v /var/gogs:/data gogs/gogs
usermod: no changes
Apr 14 13:08:38 syslogd started: BusyBox v1.33.1
2024/04/14 13:08:38 [ WARN] Custom config "/data/gogs/conf/app.ini" not found. Ignore this warning if you're running for the first time
2024/04/14 13:08:38 [TRACE] Log mode: Console (Trace)
2024/04/14 13:08:38 [ INFO] Gogs 0.13.0+dev
2024/04/14 13:08:38 [TRACE] Work directory: /app/gogs
2024/04/14 13:08:38 [TRACE] Custom path: /data/gogs
2024/04/14 13:08:38 [TRACE] Custom config: /data/gogs/conf/app.ini
2024/04/14 13:08:38 [TRACE] Log path: /app/gogs/log
2024/04/14 13:08:38 [TRACE] Build time: 2022-01-05 02:04:04 UTC
2024/04/14 13:08:38 [TRACE] Build commit: a9be4de
2024/04/14 13:08:38 [ INFO] Run mode: Development
Apr 14 13:08:38 sshd[58]: Server listening on :: port 22.
Apr 14 13:08:38 sshd[58]: Server listening on 0.0.0.0 port 22.
2024/04/14 13:08:38 [ INFO] Listen on http://0.0.0.0:3000
2024/04/14 13:08:47 [TRACE] Session ID: beaa0812d9be0419
2024/04/14 13:08:47 [TRACE] CSRF Token: Tm7TGLtO6yTBS0UPhCEK8l4oSoU6MTcxMzEwMDEyNzc2MDEyMjg0Nw
2024/04/14 13:08:47 [TRACE] Session ID: beaa0812d9be0419
2024/04/14 13:08:47 [TRACE] CSRF Token: 544mPaENe-s_E47lMmMMpDrkD1w6MTcxMzEwMDEyNzc2NDIxMjQxOQ
2024/04/14 13:08:47 [TRACE] Template: install
Apr 14 13:09:08 sshd[116]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:09:08 sshd[116]: Connection closed by 127.0.0.1 port 44369
Apr 14 13:09:38 sshd[125]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:09:38 sshd[125]: Connection closed by 127.0.0.1 port 37475
Apr 14 13:10:08 sshd[134]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:10:08 sshd[134]: Connection closed by 127.0.0.1 port 42791
Apr 14 13:10:38 sshd[143]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:10:38 sshd[143]: Connection closed by 127.0.0.1 port 43525
Apr 14 13:11:08 sshd[152]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:11:08 sshd[152]: Connection closed by 127.0.0.1 port 35399
Apr 14 13:11:38 sshd[161]: error: kex_exchange_identification: Connection closed by remote host
Apr 14 13:11:38 sshd[161]: Connection closed by 127.0.0.1 port 41787
To reproduce
First startup without initialization
Expected behavior
no error
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
I have the same problem
This is because the version is too old. We need to use a domestic image repository and update it to the latest version.
https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/
我有同样的问题
This is because the version is too old. We need to use a domestic image repository and update it to the latest version