Uploaded image for project: 'MetaBrainz Hosting'
  1. MetaBrainz Hosting
  2. MBH-508

Limit docker logs size on all servers

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • Server management
    • None

      Exemple:

      Docker daemon: Create file /etc/docker/daemon.json:

      {{{ "log-driver": "json-file", "log-opts": { "max-size": "2m", "max-file": "5", } } }}

      Docker run:

      {{docker run -it --log-driver json-file --log-opt max-size=2m,max-file=5 alpine ash }}

       

       

            zas Zas
            zas Zas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package