this post was submitted on 23 Feb 2025
59 points (88.3% liked)

Selfhosted

53833 readers
158 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I set it to debug at somepoint and forgot maybe? Idk, but why the heck does the default config of the official Docker is to keep all logs, forever, in a single file woth no rotation?

Feels like 101 of log files. Anyway, this explains why my storage recipt grew slowly but unexpectedly.

you are viewing a single comment's thread
view the rest of the comments
[–] scrubbles@poptalk.scrubbles.tech 50 points 10 months ago (3 children)

It's because with docker you don't need to do log files. Logging should be to stdout, and you let the host, orchestration framework, or whoever is running the container so logs however they want to. The container should not be writing log files in the first place, containers should be immutable except for core application logic.

[–] Appoxo@lemmy.dbzer0.com 4 points 10 months ago

At worst it saves in the config folder/volume where persistent stuff should be.

[–] neo@lemmy.hacktheplanet.be 3 points 10 months ago
[–] truthfultemporarily@feddit.org 2 points 10 months ago (1 children)

Docker stores that stdout per default in a log file in var/lib/docker/containers/...

[–] sugar_in_your_tea@sh.itjust.works 4 points 10 months ago

You can configure the default or override per service. This isn't something containers should be doing.