Fix cp tar stream support for stdin and stdout#1947
Conversation
|
It looks like this implementation is acting more as a wrapper around the existing One of the main reasons I'd want streaming tar support in There are also implications on path length limitations in the tar files. Because the contents are fully serialized/deserialized on the host machine in a temp folder, contents with a valid path length in the archive would fail to copy due to exceeding the maximum path length when extracted under a temp folder. This is definitely more of an edge case, but still one that could trip up users. Ideally the tar streaming implementation would provide as close to 1:1 parity with Docker and Podman behavior for the same feature as possible. |
Thanks for the detailed feedback, this makes sense and I agree. Rework target checklist
|
Summary
Add tar stream support to cp using - as stdin/stdout endpoint for container path transfers.
Why
Issue 1908 (#1908) requests Docker/Podman-style tar streaming behavior:
This enables stream-based file injection/export workflows without requiring tar in the container image.
What changed
Validation
Added integration tests covering:
Issue
cpcommand tar stream support #1908