Skip to content

Remove local check for log-driver read support#8082

Merged
aiordache merged 1 commit intodocker:masterfrom
thaJeztah:remove_log_driver_check
Feb 15, 2021
Merged

Remove local check for log-driver read support#8082
aiordache merged 1 commit intodocker:masterfrom
thaJeztah:remove_log_driver_check

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