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 · 1 comment
Open

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

ningmingxiao opened this issue Oct 23, 2024 · 1 comment
Labels

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
Copy link

This issue is stale because it has been open 90 days with no activity. This issue will be closed in 7 days unless new comments are made or the stale label is removed.

@github-actions github-actions bot added the Stale label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant