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.

  • non_burglar@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    9 hours ago

    I don’t disagree that logrotate is a sensible answer here, but making that the responsibility of the user is silly.

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 hour ago

      Are you crazy? I understand that we are used to dumbed down stuff, but come on…

      Rotating logs is in the ABC of any sysadmin, even before backups.

      First, secure your ssh logins, then secure your logs, then your fail2ban then your backups…

      To me, that’s in the basic stuff you must always ensure.

      • catloaf@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        31 minutes ago

        Those should also all be secure by default. What is this, Windows?

        • Shimitar@downonthestreet.eu
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 minutes ago

          Just basic checks I prefer to ensure, not leave to distribution good faith. If all is set, good to go. Otherwise, fix and move on.

          Specially with self hosted stuff that is a bit more custom than the usual.