-
Notifications
You must be signed in to change notification settings - Fork 595
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
[Regression in v1.2.0] nerdctl logs
exits silently for nerdctl run
w/o -d
#1946
Comments
Because of this c67b102#diff-464b1e1a904b2f79ca04e2202190403c19f87a135b6a9e1ef2e65fa52772a221R85 Condition should be replaced by |
Thanks, would you like to open a PR? |
Sure |
@AkihiroSuda We have an other issue here |
Can't repro on my side |
@AkihiroSuda Yes sorry, it is fine until this fix |
The regression isn't critical, so we can defer fixing this to v1.3 or later. |
nerdctl logs
exits silently for nerdctl run
w/o -d
nerdctl logs
exits silently for nerdctl run
w/o -d
Hi @fahedouch, I had a look at the purposed fix in the draft PR above and it looked like you are attempting to build a feature similar to Docker's dual logging. For the purpose of this issue, if the goal is to restore previous behavior, then the change would be to restore the line here: c67b102#diff-21f959b0a9d34cee85c5c25014fe6cef81d7c30c93c5294231cf6ea80f0f65c9L495 Currently an empty file is being created for containers run without Dual logging is a nice to have but is likely much more involved and can be covered by #1657. |
hi @austinvazquez,
restore the the above line means no log persistance for |
You are right. it is a non complete fix introduced by this commit. the log persistence need this change to be ok, but this change needs the dual logging to satisfy CI tests. So we have two option:
cc @AkihiroSuda WDYT ? |
No need to rollback the commit, this is a non-critical. |
Sounds good thanks folks @fahedouch @AkihiroSuda. Will focus efforts on dual logging design. |
nerdctl run --name=foo alpine echo foo nerdctl logs foo
v1.1.0 fails as expected (because
-d
is not specified and the logging driver is not enabled)The main branch exits silently, with exit code 0.
Regression in c67b102
The text was updated successfully, but these errors were encountered: