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.

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

    Imho it’s because docker does away with (abstracts?) many years of sane system administration principles (like managing logfile rotations) that you are used to when you deploy bare metal on a Debian box. It’s a brave new world.

    • Scrubbles@poptalk.scrubbles.tech
      link
      fedilink
      English
      arrow-up
      35
      arrow-down
      1
      ·
      11 hours ago

      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.

    • poVoq@slrpnk.net
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      9 hours ago

      Or you can use Podman, which integrates nicely with Systemd and also utilizes all the regular system means to deal with log files and so on.