cp-file-to-localhost Aug 17, 2019 copy file from pod to localhost data]# k run nginx --image=nginx --restart=Never -o yaml --dry-run -- sh -c 'sleep 3600' -o > 3600.yaml k apply -f 3600.yaml Copy from Pod to localhost k cp nginx-3600:etc/passwd ./passwd