[Bug]: container run --disable-progress-updates shouldn't output progress updates
I have done the following
- [x] I have searched the existing issues
- [ ] If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
~ > container run --disable-progress-updates alpine echo test
testhing imageUnpacking imageFetching kernelFetching init imageUnpacking init imageStarting container
~ >
Current behavior
--disable-progress-updates doesn't actually disable all progress updates when running a container. It appears to disable the spinner, but still output the stages, which then is overwritten by the container output.
Expected behavior
I would expect that --disable-progress-updates would cause no messages being output
Environment
- OS: Sequola 15.6
- Xcode: 16.4
- Container: 0.2.0
Relevant log output
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Thank you for reporting the issue!
The --disable-progress-updates flag disables progress updates for each task ("the spinner"), but still prints the performed tasks. To disable the progress output completely, please use 2>/dev/null in the end of the command. However, the missing new line was an obvious issue, which was fixed in PR https://github.com/apple/container/pull/442
Unfortunately this means that I can't get stderr out of the container correctly. This came up as I had a container that I wanted to get the stderr output out of and the extra output messed this up.
container run --disable-progress-updates alpine sh -c 'echo test >&2' would be a minimal example of reproduction.
Would it be possible to add a new flag to prevent any additional output in cases of successful execution? This would match existing Docker and Podman behavior.
This is reasonable. PR: https://github.com/apple/container/pull/444