【发布时间】:2021-07-09 06:34:44
【问题描述】:
我正在尝试使用以下命令将文件从 pod 复制到本地:
kubectl cp /namespace/pod_name:/path/in/pod /path/in/local
但是command terminates with exit code 126 和复制没有发生。
使用以下命令尝试从本地到 pod 时类似:
kubectl cp /path/in/local /namespace/pod_name:/path/in/pod
它会抛出以下错误:
OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "tar": executable file not found in $PATH: unknown
请帮助解决这个问题。
【问题讨论】:
标签: kubernetes devops kubectl file-copying