-
Notifications
You must be signed in to change notification settings - Fork 104
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
[ReOpen] Enable Docker image to run TShock server as a non-root user #17
Comments
I know this is an ancient issue, but since I just ran into this, others might as well: |
I know this issue is quite old. I just recently tried to build everything and internally to the container run under non-root privilege. TShock crashed however. I removed the non-root user and everything ran. PR's are welcome on this issue. |
Had to revert the non-root changes, was running into issues when the terraria user tried to write to a volume |
Running a game server as root is fine on a local machine, but on a public server, this might be a security issue. Docker supports the -u parameter, but with the current image, this just won't work because TShock creates a ServerLog.txt file in the /tshock directory. This fails because the directory is not writable to other users.
See pull request #16 for a possible fix.
The text was updated successfully, but these errors were encountered: