Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenShift CLI: oc vs rhc?

Tags:

openshift

What is the difference between rhc and oc CLI-tools?

As I see, they do almost the same:

oc:

The OpenShift CLI exposes commands for managing your applications, as well as lower level tools to interact with each component of your system.

rhc does the same, no?

What should I use to manage my containers on OpenShift platform?

like image 359
d-d Avatar asked Jul 26 '16 09:07

d-d


People also ask

What is RHC OpenShift?

The rhc tool is for OpenShift 2. The oc tool is for OpenShift 3. They are completely different versions of the package. So you need to know which version of OpenShift you are using. If you are using the existing OpenShift Online version it is version 2.

What is OC command in OpenShift?

With the OpenShift command-line interface (CLI), the oc command, you can create applications and manage OpenShift Container Platform projects from a terminal. The OpenShift CLI is ideal in the following situations: Working directly with project source code. Scripting OpenShift Container Platform operations.

What is OC apply?

oc apply computes and applies differences between objects: It performs a three-way merge between: the input into the command, the current version of the object, and. the most recent user specified object definition stored as an annotation in the current object.


1 Answers

The rhc tool is for OpenShift 2. The oc tool is for OpenShift 3. They are completely different versions of the package. So you need to know which version of OpenShift you are using. If you are using the existing OpenShift Online version it is version 2. If you are using the new OpenShift Online developer preview, it is version 3.

like image 54
Graham Dumpleton Avatar answered Sep 18 '22 19:09

Graham Dumpleton