containerd / rust-extensions

Rust crates to extend containerd
https://containerd.io
Apache License 2.0
184 stars 73 forks source link

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

Open ningmingxiao opened 1 month ago

ningmingxiao commented 1 month ago

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 https://github.com/containerd/rust-extensions/issues/276