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
Ignore the daemon log config when building images #29552
Conversation
@@ -1193,6 +1193,19 @@ func (s *DockerDaemonSuite) TestDaemonLoggingDriverNoneLogsError(c *check.C) { | |||
c.Assert(out, checker.Contains, expected) | |||
} | |||
|
|||
func (s *DockerDaemonSuite) TestDaemonLoggingDriverNoneWithBuild(c *check.C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you consider adding some description comment to this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What sort of descriptive comment? I prefer to just use a descriptive name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was considering something like // Test for Issue 19259: the daemon log config should be ignored when building images
.
But it is ok to use a descriptive name.
Just IMO, TestDaemonLoggingDriverShouldBeIgnoredForBuild
would be more descriptive? (too verbose? 😅 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I've updated the test name
IMO we should set |
Yes, setting changelog SGTM |
Per the discussion on #19259 (comment), we could also consider using Alternatively, set |
I believe if you use |
0f85707
to
be28ce6
Compare
be28ce6
to
3b86df7
Compare
@dnephin I always using |
@dnephin needs a rebase 👼 |
3b86df7
to
7af3969
Compare
rebased |
Still insisting on trying "none" :) |
Logs created by build containers should be handled by the daemon, not by logging drivers. Signed-off-by: Daniel Nephin <dnephin@docker.com>
7af3969
to
80b642f
Compare
Looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐸
Fixes #19259
I believe the log config setting should be ignored by the builder. The logs should also be handled by the daemon.