<p>I would like to use kubectl cp to copy a file from a completed pod to my local host(local computer). I used <strong>kubectl cp /:/ </strong>, however, it gave me an <strong>error: cannot exec into a container in a completed pod; current phase is Succeeded</strong> error. Is there a way I can copy a file from a completed pod? It does not need to be kubectl cp. Any help appreciated!</p>

<p>Nope. If the pod is gone, it's gone for good. Only possibility would be if the data is stored in a <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="noreferrer">PV</a> or some other external resource. Pods are <a href="https://devops.stackexchange.com/questions/653/what-is-the-definition-of-cattle-not-pets">cattle, not pets</a>.</p>
