- Home
- All questions
- Question 932
CKA study material · question 932 of 1000
kubectl cp into a distroless container fails. What is the cause, and what is the documented alternative?
Show the answer
Answer: B. The container lacks tar; pipe tar through kubectl exec
kubectl cp requires a tar binary inside the image and fails without one; piping tar through kubectl exec is the documented way round it.
Source: kubectl cp (Kubernetes) — Examples