Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Gitea to Run as Root in Rootless Environments #33831

Closed
Hydrostic opened this issue Mar 9, 2025 · 0 comments
Closed

Allow Gitea to Run as Root in Rootless Environments #33831

Hydrostic opened this issue Mar 9, 2025 · 0 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@Hydrostic
Copy link

Feature Description

In rootless setups like podman and Docker Rootless, the host's UID is by default mapped to container user root(0). This causes all mounted volumes to be owned by the root user within containers. While it is possible to adjust the default UID mappings, for example, in podman, using --userns to make volumes owned by other users (such as the default user 1000 in the gitea image), this approach requires more configuration and is not user-friendly for deployment.

In my specific use case, I aim to combine Podman Compose with systemd, but I found that modifying the userns settings causes pods created with these adjustments to fail to start. While I acknowledge that this is actually an issue with podman, I would still like to inquire if allowing gitea to run as root could simplify the process.

Screenshots

No response

@Hydrostic Hydrostic added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

1 participant