Skip to content

[Bug]: Container copy doesn't expand host path correctly. #1738

Description

@JaewonHur

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

container run -d --rm --name foo alpine:latest sleep 1d
touch file
container cp file foo:/root/

This fails with

Error: failed to copy into container foo (cause: "internalError: "failed to copy into container foo (cause: "notFound: "copyIn: source not found '/file'"")"")

Following succeeds

container cp $PWD/file foo:/root/

Problem description

Container cp fails to expand host path.

Environment

ProductName:		macOS
ProductVersion:		26.2
BuildVersion:		25C56
ReleaseType:		Internal

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions