Skip to main content

Files

Listing Pods

Once logged into an OpenShift server and on a project you can list the pods of a project. This will allow you to find "running" pods in the system

oc get pods

Copying file(s)

Once logged into an OpenShift server and on a project. You should have a name of a running pod you wish to access.

To copy a file from your desktop to the pod

oc cp local.file POD:/remote/directory

To copy a file from the pod to your desktop

oc cp POD:/remote/directory local.file

To bulk copy files use oc rsync

Synchronize a local directory with a pod directory

oc rsync ./local/dir/ POD:/remote/dir

Synchronize a pod directory with a local directory

oc rsync POD:/remote/dir/ ./local/dir