Difficulty: beginner
Estimated Time: 10-15 minutes


Learn how to use the OpenShift Container Platform to build and deploy an application with a data backend and a web frontend.


  • OpenShift Web Console and Perspectives
  • OpenShift oc command line tool
  • Building applications from source on OpenShift
  • OpenShift REST API
  • Public URLs and OpenShift Routes

Use case

Be able to provide a great experience for both Developers and System Administrators to develop, deploy, and run containerized applications using OpenShift. Developers should love using OpenShift because it enables them to take advantage of both containerized applications and orchestration without having to know the details. Developers are free to focus on their code instead of spending time writing Dockerfiles and running docker builds.

This OpenShift cluster will self-destruct in one hour.

Continue Learning

You can continue learning more about OpenShift and how to develop applications on the platform by completing other tutorials at https://learn.openshift.com.

For developer-related resources about OpenShift, visit https://developers.redhat.com/products/openshift/getting-started.

Run OpenShift Locally with CodeReady Containers

CodeReady Containers allows you to run a minimal, pre-configured OpenShift 4 cluster on your local machine. The project supports Windows 10, macOS, and Linux. To find out more or download CodeReady Containers, visit https://developers.redhat.com/products/codeready-containers/overview

Compare Hosted, Managed, or On Premises OpenShift

Learn more about the different OpenShift platform variants here: https://www.openshift.com/try

Browse the Documentation

If you want to learn about particular OpenShift concepts in more depth, visit the documentation: https://docs.openshift.com/container-platform/latest

Getting Started with OpenShift for Developers

Step 1 of 6

Step 1 - Exploring The Command Line

Command Line Interface (CLI)

The OpenShift CLI is accessed using the command oc. From here, you can administrate the entire OpenShift cluster and deploy new applications.

The CLI exposes the underlying Kubernetes orchestration system with the enhancements made by OpenShift. Users familiar with Kubernetes will be able to adapt to OpenShift quickly. oc provides all of the functionality of kubectl, along with additional functionality to make it easier to work with OpenShift. The CLI is ideal in situations where you are:

1) Working directly with project source code

2) Scripting OpenShift operations

3) Restricted by bandwidth resources and cannot use the web console

In this tutorial, we're not focusing on the OpenShift CLI, but we want you to be aware of it in case you prefer using the command line. You can check out our other courses that go into the use of the CLI in more depth. Now, we're just going to practice logging in so you can get some experience with how the CLI works.

Exercise: Logging in with the CLI

Let's get started by logging in. Your task is to enter the following into the console:

oc login

When prompted, enter the following username and password:

Username: developer

Password: developer

Next, you can check if it was successful:

oc whoami

oc whoami should return a response of:


That's it!

In the next step, we'll get started with creating your first project using the web console.