Open ningmingxiao opened 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
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