In this tutorial, we will walk you through the steps of installing Openshift on your Windows 10 computer.
Before you start, you need to make sure you have the following prerequisites installed on your system:
oc
commandDocker 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.
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.
oc
Toolsoc
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.
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.
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.
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.
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
.
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.
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!
Alternatively, for the best virtual desktop, try Shells!