]> source.dussan.org Git - gitea.git/commit
Add -u git to docs when using docker exec with root installation (#29314) (#30259)
authorGiteabot <teabot@gitea.io>
Wed, 3 Apr 2024 05:44:26 +0000 (13:44 +0800)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 05:44:26 +0000 (01:44 -0400)
commitf8cee25ab59ae559afc9e5e310e5dace98a4311d
tree208407c2f9a0dc3309c6c47ec4849756b11cca40
parent5c9cbeafed631bb05ae12deeb288cedb23e7988d
Add -u git to docs when using docker exec with root installation (#29314) (#30259)

Backport #29314 by @scribblemaniac

This fixes a minor issue in the documentation for SSH Container
Passthrough for non-rootless installs. The non-rootless Dockerfile and
docker-compose do not set `USER`/`user` instructions so `docker exec`
will run as root by default. While running as root, gitea commands will
refuse to execute, breaking these approaches. For containers built with
the rootless instructions, `docker exec` will run as git by default so
this is not necessary in that case.

This issue was already discussed in #19065, but it does not appear this
part of the issue was ever added to the documentation.

Co-authored-by: scribblemaniac <scribblemaniac@users.noreply.github.com>
docs/content/installation/with-docker.en-us.md