-
Notifications
You must be signed in to change notification settings - Fork 639
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
Progress bars should not show up if stderr is not a TTY #3772
Labels
bug
Something isn't working
Comments
Not sure what's different here - looks decent to me:
Anyhow, I am pretty sure this should not go to stderr, but instead to stdout, as docker does. Meanwhile, you may want to use the |
Of course... Anyhow, needs to be fixed. |
Duplicate of #3395 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Running any command with a progress bar (nerdctl pull, nerdctl run, etc) in a script (in e.g., systemd) and/or attempting to record the output of such a script (e.g.
setup_dev_env.sh |& tee output.txt
) leads to a lot of redundant output and unexpected control codes that makes it hard to read.Steps to reproduce the issue
1.
nerdctl pull debian 2> stderr.txt
(may need tonerdctl rmi debian
first if already pulled)2.Read stderr.txt
3.See that stderr.txt is filled with control codes, redundant output, etc
Describe the results you received and expected
Expect: that stderr.txt be clean
Received: stderr.txt is filled with control characters/other output that makes it hard to read
What version of nerdctl are you using?
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: