Skip to content

Add container copy/cp command for host-container file transfer#1190

Open
simone-panico wants to merge 6 commits intoapple:mainfrom
simone-panico:main
Open

Add container copy/cp command for host-container file transfer#1190
simone-panico wants to merge 6 commits intoapple:mainfrom
simone-panico:main

Conversation

@simone-panico
Copy link

@simone-panico simone-panico commented Feb 10, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • 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 #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

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@simone-panico simone-panico marked this pull request as ready for review February 10, 2026 21:22
@JaewonHur
Copy link
Contributor

Related to #232

@jglogan jglogan requested a review from dcantah February 11, 2026 23:20
@jglogan jglogan added storage issues and features associated with storage. labels Feb 11, 2026
@jglogan jglogan requested review from JaewonHur February 11, 2026 23:21
@jglogan jglogan modified the milestone: 2026-02 Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage issues and features associated with storage.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants