-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
docker cp spinner does not work #4135
Comments
This seems to happen when stderr is not a TTY. e.g. |
I've got a branch with a few commits to improve the progress output... first commit fixes this issue. https://github.com/docker/cli/compare/master...cpuguy83:cli:fix_cp_no_tty?expand=1 |
Opened #4137 |
Thanks but I'm not sure to understand your analysis. In our configuration, we have the behavior by default even when stderr is not redirected |
It's not about the redirect, just if stderr is a TTY or not. |
Description
In docker 23, the docker cp command is supposed to use a spinner (#2708)
However, as indicated in Azratosh comment (#2708 (comment)), the behavior is not as expected and big files copy results in hundredth of log lines which makes the use of the quiet mode almost compulsory in practice
Reproduce
run any docker cp command
Environments:
debian.11bullseyeExpected behavior
The command shall behave as shown in feature video
docker version
Client: Docker Engine - Community Version: 23.0.0 API version: 1.42 Go version: go1.19.5 Git commit: e92dd87 Built: Wed Feb 1 17:43:17 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 23.0.0 API version: 1.42 (minimum version 1.12) Go version: go1.19.5 Git commit: d7573ab Built: Wed Feb 1 17:43:17 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.16 GitCommit: 31aa4358a36870b21a992d3ad2bef29e1d693bec runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: