How to access a container in Rancher from the command line without SSH If you have deployed an application pod in rancher, sometimes you have to access the running container for various tasks. Maybe, to check some files, monitor logs, run some commands, copy files, etc. Assume you have an application pod running in Rancher as the following image. Using the Web UI One of the ways to access the container would be using the Rancher UI. If you click on the pod name and then on the next page, you can select Execute Shell from the Pod's context menu. Then it is supposed to bring the command window in the web UI itself. However, this method has its limitations. You cannot copy files to or from the Pod using the web UI itself. Using Rancher CLI The link to the CLI package can be found in the bottom right corner of the Rancher web UI. Select the CLI client according to your OS and download. I'm using Linux, so I've downloaded the Linux client. Extract it. tar -xf rancher-linux-...
Just another tech blog, also my personal blog. I'll be posting interesting articles about tech, programming and tricks, dev life, and any timely topics.