-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
kubectl cp a file from a Windows Pod to Windows 11 localhost failed #124781
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/sig windows |
Try this way |
@tamilselvan1102 It failed. It shows
|
I think you might be running into this: kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/cp/cp.go Lines 497 to 504 in 6e0ece8
This is probably the cause:
Is there a way you can do this without referencing the drive letter, like maybe this way? I wonder if something like this would work...
|
I tried it and it showed the following error:
or
|
Gotta get the slashes right. Your original path had double-backslashes and I think I skipped removing one of them. The Try this:
Otherwise, I'm out of ideas. |
@brianpursley Still the same error. Thanks. It is not easy to use k8s on Windows. |
What happened?
I was trying to cp a from a Windows Pod to the Windows localhost. But it failed.
It showed
What did you expect to happen?
I want to copy the file to the localhost.
How can we reproduce it (as minimally and precisely as possible)?
Windows 11 localhost
Windows Pod.
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: