Skip to content

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

Open
@ningmingxiao

Description

@ningmingxiao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions