How to Install Openshift on Windows 10

In this tutorial, we will walk you through the steps of installing Openshift on your Windows 10 computer.

Prerequisites

Before you start, you need to make sure you have the following prerequisites installed on your system:

Step 1: Install Docker Desktop

Docker Desktop is required to run Openshift on your Windows 10 machine. You can download Docker Desktop from the official Docker website: https://www.docker.com/products/docker-desktop.

Once downloaded, run the installation file and follow the instructions to install Docker Desktop on your system.

Step 2: Download and Install Git

Go to the official Git website: https://git-scm.com/download/win and download the Git installer for Windows.

Run the installer and follow the instructions to install Git on your system.

Step 3: Download and Install oc Tools

oc tools are required to deploy and manage your applications on Openshift. You can download the oc binaries from the official Openshift website: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.7.0/openshift-client-windows-4.7.0.zip

Once downloaded, extract the contents of the zip file to a desired location on your system.

Step 4: Start Docker Desktop

Open Docker Desktop by searching for it in the Start Menu or by double-clicking on its icon in the system tray.

Once opened, Docker Desktop will automatically start the Docker engine in the background.

Step 5: Start the Openshift Cluster

Open a command prompt window and navigate to the directory where you extracted the oc tools in step 3.

Run the following command to start the Openshift cluster:

oc cluster up

The command will download and start the Openshift cluster on your local machine. It may take a few minutes to complete.

Step 6: Log in to the Cluster

Once the cluster is up and running, you need to log in to the cluster using the following command:

oc login -u system:admin

This command logs you in as the cluster administrator.

Step 7: Create a New Project

You can create a new project on the cluster using the following command:

oc new-project myproject

This will create a new project named myproject.

Step 8: Deploy Your Application

Once you have created a project, you can deploy your application on the cluster using the following command:

oc new-app https://github.com/openshift/ruby-hello-world.git

This command will deploy the Ruby Hello World application on the cluster.

Conclusion

In this tutorial, you learned how to install Openshift on your Windows 10 computer. You also learned how to deploy your application on the cluster. Openshift is a powerful platform for running and managing applications in containers.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!