Skip to content

engine/logging: fix json-file compress default value#24815

Open
lacatoire wants to merge 2 commits intodocker:mainfrom
lacatoire:fix/issue-21898-json-file-compress-default
Open

engine/logging: fix json-file compress default value#24815
lacatoire wants to merge 2 commits intodocker:mainfrom
lacatoire:fix/issue-21898-json-file-compress-default

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

The compress option is parsed as a boolean via strconv.ParseBool in moby/moby daemon/logger/jsonfilelog/jsonfilelog.go. The previous wording claimed the default was disabled, which isn't a value the parser accepts (users copy-pasting it would hit an error). Aligns with the in-file convention already used by max-size and max-file.

Closes #21898

The option is parsed as a boolean by strconv.ParseBool, so 'disabled'
wasn't a valid value and misled readers. Align the default with the
in-file convention used by max-size and max-file.

Closes docker#21898
@lacatoire lacatoire requested a review from dvdksn as a code owner April 17, 2026 20:19
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 17, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit e8935df
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69e296e914476700084810f7
😎 Deploy Preview https://deploy-preview-24815--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

default value of compress option for json-file driver

1 participant