Make sure log-size-max is atleast as big as read buffer
We need log-size-max to be bigger than the read buffer in conmon to accurately truncate it. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
61441c1272
commit
067cbff207
3 changed files with 8 additions and 1 deletions
|
@ -40,6 +40,11 @@ func validateConfig(config *server.Config) error {
|
|||
return fmt.Errorf("Unrecognized image volume type specified")
|
||||
|
||||
}
|
||||
|
||||
// This needs to match the read buffer size in conmon
|
||||
if config.LogSizeMax >= 0 && config.LogSizeMax < 8192 {
|
||||
return fmt.Errorf("log size max should be negative or >= 8192")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue