Skip to content
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/crictl cp failed with error invalid tar magic #328

Open
ningmingxiao opened this issue Oct 23, 2024 · 0 comments
Open

kubectl/crictl cp failed with error invalid tar magic #328

ningmingxiao opened this issue Oct 23, 2024 · 0 comments

Comments

@ningmingxiao
Copy link
Contributor

ningmingxiao commented Oct 23, 2024

tar cf - container.json | crictl exec -i e5d tar xf - -C /tmp/
tar: invalid tar magic
FATA[0000] execing command in container: command terminated with exit code 1
ref:https://kubernetes.io/zh-cn/docs/reference/kubectl/generated/kubectl_cp/
use kubectl cp have same problem.
but use pipe it works well #276

@ningmingxiao ningmingxiao changed the title kubectl/crictl cp failed invalid tar magic kubectl/crictl cp failed with error invalid tar magic Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant