-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
"podman cp" handles "/dev/stdout" as "-" (docker incompatibility) #9362
Comments
Thanks, @eriksjolund! I can tackle the issue as I caused the incompatibility :^) The philosophical question whether it's a bug or feature but Docker compatibility is the goal. |
The more I think about it, the greater the feelings that this is a bug in Docker. @eriksjolund is there a specific reason you consider it a bug? Some tools that may depend on this specific behavior? |
I tried out a few examples:
Nr 1 and nr 2 succeeded and gave the same result. (I was logged in over ssh to this computer)
I think adding support for |
Thanks for coming back, @eriksjolund.
That's a convincing argument to not treat |
/dev/stdout should not be treated as "-" to remain compatible with Docker and to have a more consistent and idiomatic interface. Fixes: containers#9362 Signed-off-by: Valentin Rothberg <[email protected]>
/dev/stdout should not be treated as "-" to remain compatible with Docker and to have a more consistent and idiomatic interface. Fixes: containers#9362 Signed-off-by: Valentin Rothberg <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The command
docker cp foobar:/root /dev/stdout
fails.
The same command with Podman does not fail, instead Podman writes a tar stream to stdout.
To match the Docker behaviour, Podman should fail too.
Steps to reproduce the issue:
Running with Podman
Running with Docker
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug | grep -v hostname:
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: