Quick Actions
kubectl cp
Description
Copy files and directories to and from containers.
Command
kubectl cp
Examples
Copy file to pod
kubectl cp local-file.txt my-pod:/app/
Copy file from pod
kubectl cp my-pod:/app/log.txt ./local-log.txt
Command Info
Category:
File Management
Type:
Kubernetes
Views:
13
Status:
Active
Tags
copy
files
transfer