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.

  • Shimitar@downonthestreet.eu
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    10
    ·
    8 hours 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.

    • non_burglar@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      43 minutes ago

      I would argue that logrotate was the ABC of any sysadmin in 2005, but today that should be a solved problem, whether in docker or bare metal.

    • MTK@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      4 hours ago

      This is a docker! If your docker is marketed as ready to go and all-in-one, it should have basic things like that.

      If I were running this as a full system with a user base then of course I would go over everything and make sure it all makes sebse for my needs. But since my needs were just a running nc instance, it would make sense to run a simple docker with mostly default config. If your docker by default has terrible config, then you are missing the point a bit.

      • truthfultemporarily@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 minutes ago

        Containers don’t do log rotation by default and the container itself has no say in the matter. You have to configure it in your container runtime config.

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

        Dockers images are often incoherent and just different from one a other so much that you should never give something as expected and doublecheck the basics.

        Docker was never meant do deploy services, and I shows.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      5 hours ago

      Logration is the abc of the developer.
      Why should I need 3rd party tools to fix the work of the developer??

      • Shimitar@downonthestreet.eu
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        3 hours ago

        Why is that? Really? The Dev should replace a system function? And implement over and over again the same errors when logrotate exist?

        • acockworkorange@mander.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          Yes, that’s exactly what we’re arguing here. The developer also should replace autotools/cmake, git, … Don’t be daft! Packaging sane defaults for logrotate is now replacing a system function?

          • sugar_in_your_tea@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 hours ago

            Docker is supposed to run a single process Logrotate is a separate process. So unless the application handles rotating logs, the container shouldn’t handle it.

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 hours ago

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

      • Shimitar@downonthestreet.eu
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 hours 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.