gogs/gogs

Docker gogs cannot be restarted

itcastJava opened this issue · 2 comments

Gogs version

latest

Git version

  • Server:
  • Client:

Operating system

debian12

Database

MySQL8.0.36

Describe the bug

Although there is an error during the first startup, it can be initialized and used normally. However, it cannot be restarted and the page cannot be accessed.
Even older versions of 0.13 will not be able to restart.

To reproduce

root@debian12:# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0c29c06acec gogs/gogs:0.13 "/app/gogs/docker/st…" 22 minutes ago Up 38 seconds (health: starting) 0.0.0.0:10022->22/tcp, :::10022->22/tcp, 0.0.0.0:10880->3000/tcp, :::10880->3000/tcp gogs
root@debian12:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0c29c06acec gogs/gogs:0.13 "/app/gogs/docker/st…" 25 minutes ago Up 3 minutes (unhealthy) 0.0.0.0:10022->22/tcp, :::10022->22/tcp, 0.0.0.0:10880->3000/tcp, :::10880->3000/tcp gogs

Expected behavior

Can be restarted

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

图片
图片
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/