Skip to content

Commit 03518d3

Browse files
DOC: in ssh forwarding, user git must be allowed to run docker (#29634)
Added to doc for rootless Docker installation: for SSH passthrough, the ssh user (git) has to be able to run docker. --------- Co-authored-by: techknowlogick <[email protected]>
1 parent fcdc57d commit 03518d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/installation/with-docker-rootless.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ Match User git
350350
AuthorizedKeysCommand /usr/bin/docker exec -i gitea /usr/local/bin/gitea keys -c /etc/gitea/app.ini -e git -u %u -t %t -k %k
351351
```
352352

353+
For this to work, the user `git` has to be allowed to run the `docker` cli command. Please read through the [security considerations](https://docs.docker.com/engine/security/#docker-daemon-attack-surface) of providing non-root linux users access to the docker daemon.
354+
353355
(From 1.16.0 you will not need to set the `-c /etc/gitea/app.ini` option.)
354356

355357
All that is left to do is restart the SSH server:

0 commit comments

Comments
 (0)