#Hostea tip: running `gitea doctor` on a docker `gitea/gitea:1.16.8` installation can be done with:
docker exec --user git --workdir=/tmp gitea gitea doctor --all
The --user git is because it otherwise runs as root and is not setup properly to run gitea. And the --workdir is because it otherwise does not have permission to write the log file in the container.
When using `gitea/gitea:1.16.8-rootless` there is no need for these extra flags.
---
Authored by @dachary