Skip to main content
After configuring your Red Hat account, navigate to Red Hat OpenShift. You should see a page similar to the one below:
The image shows the Red Hat Hybrid Cloud Console interface with a message indicating no OpenShift clusters are currently displayed, and options to create or register a cluster.
In this lesson, we will install CodeReady Containers (CRC), a tool that functions similarly to Docker Desktop by running a local OpenShift cluster. Once launched from your taskbar, CRC lets you use OpenShift for local development—comparable to Docker Desktop or Minikube.

Create a Local Cluster

Begin by clicking on Create Cluster and select Local as your deployment option:
The image shows a Red Hat Hybrid Cloud Console interface for creating an OpenShift cluster, with options for cloud, datacenter, and local setups. It displays active subscriptions and managed services, with a focus on Red Hat OpenShift Dedicated Trial.
You will now see the “Red Hat OpenShift Local” page with a download button. Depending on your operating system (Linux, macOS, or Windows), click the appropriate download button:
The image shows a webpage from the Red Hat Hybrid Cloud Console, specifically the section for downloading and setting up Red Hat OpenShift Local. It includes options for selecting the operating system and downloading the necessary files.

Installing CRC on Windows

For Windows users, click Download OpenShift Local and run the installer. Follow the installation prompts by clicking Next until you reach the Install button. After installation, you will be prompted to restart your computer:
The image shows a computer screen with a Red Hat OpenShift setup process, including a file explorer window displaying a downloaded installer and a prompt to restart the system.
Click Yes to restart your system. After restarting, open PowerShell and maximize the window. You should see a prompt similar to the following:

Set Up CRC Prerequisites

Verify that the CRC CLI is installed by typing crc. Then, run the setup command to install all prerequisites:
When prompted for anonymous usage statistics, type N to decline:
During the setup process, CRC configures several prerequisites. On Windows, CRC leverages Hyper-V for virtualization (similar to how Docker Desktop runs a virtual machine in the background). This process may download a large bundle (approximately 14 GiB) and configure multiple components, including:
  • Hyper-V settings (ensuring Hyper-V is enabled and that your user is in the required groups).
  • The CRC bundle for Hyper-V.
  • The daemon task (which installs and runs as needed).
The output will resemble the example below:
Ensure that Hyper-V is enabled on your Windows machine before running the setup command.

Starting the CRC Cluster

Clear your screen and start the CRC cluster with:
Starting the cluster may take around 15 minutes as the virtual machine fully initializes. Once the cluster is running, the CRC icon will appear in your Windows taskbar. Right-click the icon and select Open Console to view your CRC console credentials. Open a terminal and execute the command provided by the console to reveal your credentials. You might see output similar to this:
The output displays credentials for both the administrator and developer users. For example:
Copy the password provided for the “kubeadmin” account to log in as the administrator.
The image shows a login page for the Red Hat OpenShift Container Platform, prompting for a username and password. The username field is filled with "kubeadmin."

Verifying Your Installation

After logging in, the OpenShift dashboard will be displayed, confirming your successful connection to the local OpenShift cluster.
The image shows the dashboard of the Red Hat OpenShift Container Platform, displaying an overview of cluster details and getting started resources. It includes navigation options on the left and a warning banner at the top indicating the cluster is for development and testing purposes only.
This completes the setup of CRC on your local machine. You are now ready to develop and test locally with OpenShift. Happy Coding!

Watch Video