Closed apostasie closed 2 months ago
Do you have any examples of how you wrap?
Do you have any examples of how you wrap?
Sorry, there is no workaround that I know of.
Suggestion to "wrap" refers to how to fix the code: you need to search for all the calls to console.Current
and replace them by a call to a new function that will test for said condition.
Can I provide some additional information to help you fix the issue? Even if it is impossible to run top inside of the container, at least it shouldn't crash.
Can I provide some additional information to help you fix the issue? Even if it is impossible to run top inside of the container, at least it shouldn't crash.
Of course. Thanks!
What do you want me to do. Let me know if you want me to run debugging of some sort or test with some different version of nerdctl
What do you want me to do. Let me know if you want me to run debugging of some sort or test with some different version of nerdctl
Ideally:
Thanks.
Thank you for your work. I built and tested new code. It allows a container to continue. This said are there any plans to make nerdctl started container from systemd more pseudo-terminal friendly?
@alitvak69 you are welcome!
Roadmap questions should go to @AkihiroSuda or other maintainers. Then again, there is nothing wrong with just going ahead: open issues / feature requests for what you need and let see what we can do.
Cheers.
Description
As outlined in #3297, there are more places that are likely to panic when we do not have a tty.
While the patch in #3300 fixed it for
exec
for a specific use case, clearlyrun
can crash in the same circumstances.Suggestion is to wrap the third party term console library so that it returns an error we can check instead of crashing.
Steps to reproduce the issue
na
Describe the results you received and expected
na
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response