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.

  • truthfultemporarily@feddit.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    8 hours ago

    I disagree with this, container runtimes are a software like all others where logging needs to be configured. You can do so in the config of the container runtime environment.

    Containers actually make this significantly easier because you only need to configure it once and it will be applied to all containers.

    • Neo@lemmy.hacktheplanet.be
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      You are right and as others have pointed out correctly it’s Nextcloud not handling logging correctly in a containerized environment. I was ranting more about my dislike of containers in general, even though I use the technology (correctly) myself. It’s because I am already old on the scale of technology timelines.

    • sugar_in_your_tea
      link
      fedilink
      English
      arrow-up
      3
      ·
      7 hours ago

      Or you can forward to your system logger, like syslog or systemd.

      But then projects like NextCloud do it all wrong by using a file. Just log to stdout and I’ll manage the rest.