Log files grow forever on Windows

Expected behavior

Log files should use somekind of size-based log rotation strategy.

Actual behavior

%APPDATA%\…\Local\Docker is full of log files. One has more than 75GB. It can’t grow more than that because disk is already full.

Information

[12:05:59.931][Program        ][Info   ] Version 1.11.1-beta11 (build: 2744)
[12:05:59.932][Program        ][Info   ] Starting on: 5/29/2016 12:05:59 PM
[12:05:59.932][Program        ][Info   ] Resources: C:\Program Files\Docker\Docker\Resources
[12:05:59.932][Program        ][Info   ] OS: Windows 10 Pro
[12:05:59.934][Program        ][Info   ] Edition: Professional
[12:05:59.934][Program        ][Info   ] Id: 1511
[12:05:59.934][Program        ][Info   ] Build: 10586
[12:05:59.935][Program        ][Info   ] BuildLabName: 10586.306.amd64fre.th2_release_sec.160422-1850
[12:05:59.936][Program        ][Info   ] Mixpanel Id: 3F7F56F6-CCB8-44AC-BFDC-8A82E64445E9
[12:05:59.938][Program        ][Info   ] Sha1: 436d388f84b51eac1ea0d076f5b6bdc703348800
[12:05:59.938][Program        ][Info   ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[12:06:00.140][Mixpanel       ][Info   ] Tracking: appLaunched
[12:06:03.416][Mixpanel       ][Info   ] Tracking: heartbeat
[12:06:03.417][BackendServer  ][Info   ] Started
[12:06:03.423][NamedPipeServer][Error  ] Pipe failure: Não foi possível converter algumas ou todas as referências de identidade.    em System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
   em System.Security.Principal.NTAccount.Translate(Type targetType)
   em System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified)
   em System.Security.AccessControl.CommonObjectSecurity.SetAccessRule(AccessRule rule)
   em Docker.Core.pipe.NamedPipeServer.NewPipeServer(String pipeName)
   em Docker.Core.pipe.NamedPipeServer.Run()
[12:06:03.423][NamedPipeServer][Error  ] Pipe failure: Não foi possível converter algumas ou todas as referências de identidade.    em System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
   em System.Security.Principal.NTAccount.Translate(Type targetType)
   em System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified)
   em System.Security.AccessControl.CommonObjectSecurity.SetAccessRule(AccessRule rule)
   em Docker.Core.pipe.NamedPipeServer.NewPipeServer(String pipeName)
   em Docker.Core.pipe.NamedPipeServer.Run()

Steps to reproduce the behavior

  1. Just keep docker running while machine is on.

Problem was solved uninstalling version 1.11.1-beta11 (build: 2744) and installing newest beta Version 1.11.1-beta13 (build: 3441).

I see the same behavior on Docker for Mac OSX.
My file is at 13 GB right now!

@kikas

Which version are you running? v1.11.1-beta13.1 (build: 8193) solved two issues that caused logs to grow exponentially.

HTH,
Alexandre