Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove local check for log-driver read support #8082

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

thaJeztah
Copy link
Member

relates to moby/moby#40543
relates to moby/moby#30887
(hopefully) fixes #8060

Starting with Docker 20.10, the docker daemon has support for "dual logging", which allows reading back logs, irregardless of the logging-driver that is configured (except for "none" as logging driver).

This patch removes the local check, which used a hard-coded list of logging drivers that are expected to support reading logs.

When using an older version of Docker, the API should return an error that reading logs is not supported, so no local check should be needed.

Starting with Docker 20.10, the docker daemon has support for
"dual logging", which allows reading back logs, irregardless of
the logging-driver that is configured (except for "none" as logging
driver).

This patch removes the local check, which used a hard-coded list of
logging drivers that are expected to support reading logs.

When using an older version of Docker, the API should return an
error that reading logs is not supported, so no local check should
be needed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah marked this pull request as ready for review January 28, 2021 16:26
@thaJeztah
Copy link
Member Author

@ulyssessouza @aiordache ptal (hope I did it right 😂)

Copy link
Contributor

@aiordache aiordache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

Compatibility with dual-logging in docker engine 20.10
2 participants