Container: Developing an Application - Copying Files to or From a Pod


OpenShift Project Administration Documentation

Copying Files

It is possible to access / update files in a pod from the command line. E.g. The command

oc rsync kartograafr-3-ltzt2:/var/log/kartograafr . 

will copy the kartograafr log files from the kartograafr-3-ltzt2 pod to the current laptop directory.

Note: A message that rsync is not available in the container may appear, but files can still be copied. This is a good option for examining current log or configuration files.

More information can be found at the RedHat site.

Last Updated: 
Monday, September 10, 2018