Uh oh!
There was an error while loading. Please reload this page.
Add container copy/cp command for host-container file transfer - #1190
Conversation
JaewonHur
commented
Feb 11, 2026
Related to #232 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
⏺ Scenario 1:
Scenario 2:
Scenario 3:
Scenario 4:
|
Hi @simone-panico The bold italic phrases are what is different from desired behavior (i.e., docker) now, and can be addressed. Below is general comments.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JaewonHur
commented
Feb 19, 2026
Hi @simone-panico You may need to build this project with local containerization (BUILDING.md), and wire up |
dcantah
commented
Feb 19, 2026
@JaewonHur the change above does not allow copying directories. It adds a tar reader/writer that will be used to support this, but it's not in the change itself. |
simone-panico
commented
Feb 19, 2026
If you’re interested, I could try to create a Directory Copier within |
JaewonHur
commented
Apr 30, 2026
@simone-panico Thank you! |
simone-panico
commented
May 6, 2026
Hey @JaewonHur, sorry this took so long. I had to finish my finals. |
JaewonHur
commented
May 6, 2026
@simone-panico Not at all :) I really appreciate for all your hard work! |
Uh oh!
There was an error while loading. Please reload this page.
JaewonHur
commented
May 19, 2026
@simone-panico Could you do Once the containerization PR is merged, we should bump that in Package.swift, and able to merge this PR. |
simone-panico
commented
May 19, 2026
Should be correct now, right? |
JaewonHur
commented
May 19, 2026
Yes. Looks good. |
Code Coverage
|
This pull request enhances the handling of file and directory copy operations in Linux containers, particularly by improving destination path resolution and error handling for the `copyIn` operation with the `Stat RPC` This PR is needed for [container#1190](apple/container#1190)
JaewonHur
commented
May 19, 2026
Hi! I tagged latest containerization to Here could you update The |
Uh oh!
There was an error while loading. Please reload this page.
JaewonHur
commented
May 20, 2026
@simone-panico Finally merged :) Thank you so much for your hard work and patience! |
jglogan
commented
May 20, 2026
@simone-panico Definitely, thanks for the patience and the effort you've put in. It's nice to have this feature in place! |
…#1190) ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Breaking change - [x] Documentation update ## Motivation and Context Adds the `container copy` (aliased as `cp`) command to copy files between a running container and the local filesystem. I saw [apple#1023](apple#1023) and the feedback from @dcantah — the previous attempt relied on tar being installed inside the container. This implementation takes the recommended approach: file transfers go through the guest agent via the existing `copyIn`/`copyOut` methods on the core `Containerization`, with no dependency on container tooling. ## Testing - [x] Tested locally - [x] Added/updated tests - [x] Added/updated docs --------- Co-authored-by: jwhur <57657645+JaewonHur@users.noreply.github.com>
Type of Change
Motivation and Context
Closes#232.
Adds the
container copy(aliased ascp) command to copy files between a running container and the local filesystem.I saw #1023 and the feedback from @dcantah — the previous attempt relied on tar being installed inside the container.
This implementation takes the recommended approach:
file transfers go through the guest agent via the existing
copyIn/copyOutmethods on the coreContainerization, with no dependency on container tooling.Testing