docs: use the maintained main-nightly docker tags

The `:nightly` and `:nightly-rootless` tags are no longer published; the
development images are pushed to `:main-nightly` and
`:main-nightly-rootless` instead, so readers following the docker install
pages ended up on an image that has not been rebuilt for over a year.

- point the docker and rootless docker install pages at the
  `main-nightly` tags, in English and in the zh-cn/zh-tw translations
- use `1.27-nightly` instead of the long gone `1.16-nightly` as the
  release branch example
- fix the zh-cn/zh-tw claim that `:latest` installs a development
  version, and mention the nightly tags there as the English page does
- render `@dockerVersion@` as `main-nightly` for the next version, so its
  compose snippets no longer reference `gitea:nightly`

Fixes https://github.com/go-gitea/gitea/issues/39310

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
Lunny XiaoandClaude Opus 5 committed 2026-09-17 14:21:59 -07:00
1 parent 77e495f772
commit 0e63777b06
13 files changed
+13 -13

No files matched your search

@@ -53,7 +53,7 @@ sudo chown 1000:1000 config/ data/
> 如果未为卷设置正确的权限,容器可能无法启动。
对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:dev-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-dev-rootless` 标签,其中 x 是 Gitea 的次要版本号(例如:`1.16-dev-rootless`)。
对于稳定版本,您可以使用 `:latest-rootless`、`:1-rootless`,或指定特定的版本,如: `@dockerVersion@-rootless`。如果您想使用最新的开发版本,则可以使用 `:main-nightly-rootless` 标签。如果您想运行发布分支的最新提交,可以使用 `:1.x-nightly-rootless` 标签,其中 x 是 Gitea 的次要版本号(例如:`1.27-nightly-rootless`)。
## 自定义端口