mirror of
https://github.com/games-on-whales/wolf.git
synced 2026-10-15 21:12:08 +00:00
[GH-ISSUE #375] Limit container log file size; currently unlimited #254
Labels
No labels
🧠 1 - 🤖 999
AMD
bug
bug
cannot reproduce
documentation
duplicate
easy
enhancement
enhancement
enhancement
fixed?
fixed?
good first issue
hard
help wanted
Intel
invalid
LXC
medium
moonlight-protocol
Multi GPU
nixos
not a bug
nvidia
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf#254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @soxhi8 on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/games-on-whales/wolf/issues/375
Please consider adding a size limitation to sub-containers. A sub-container created a 2.70 TB log file on my system within a week of being unattended:

Containing this line over and over:
@ABeltramo commented on GitHub (Mar 29, 2026):
You should configure Docker/your system logs correctly. This is outside the scope of Wolf https://docs.docker.com/engine/logging/configure/
@soxhi8 commented on GitHub (Mar 29, 2026):
As this log file was spawned by a sub-container of wolf, I would strongly advocate for safe defaults instead. System level log file limits are not available on every system. TrueNAS does not give users the option to limit them system-wide.
This could be added to https://github.com/games-on-whales/wolf/blob/stable/src/moonlight-server/runners/docker.cpp if I interpret the role of the runner correctly.
@ABeltramo commented on GitHub (Mar 29, 2026):
There's no option in the Docker APIs that just say limit the logs to X, what you can do is to set your Docker installation properly following the official documentation.
You can also set the
LogConfigfor a container which, depending on which options you choose, it might allow to limit the log size (not all options do AFAIK). You can add that option and set it to your liking in Wolfconfig.tomlunder thebase_create_jsonfor an app.Providing a "default" would mean:
journald,syslog,local...) that would effectively override what users might wantAll this stuff depends on your system, how it's configured, the HW involved.. Not something that we should force on users IMHO.
@soxhi8 commented on GitHub (Mar 29, 2026):
I see your point. It would have to fit into the whole Wolf-setup of "magically" figuring it out; what log-type the system uses and adapting to it. Setting p.e. a limit of 1GB would safeguard against runaway scenarios, like the one that I encountered. 1GB would even exceed the usefulness limit for regular gaming deployments, that are not trying to debug something very specific. Even then, this would be something the user should be able to configure, if need be.
I will see if what I propose can be adapted into Wolf and provide a working example, instead of trying to convince you on a theoretical feature. Talk to you then.