HomeBlogsHow to Install Rancher Desktop on Linux

How to Install Rancher Desktop on Linux

In this article we will try to teach you how to install Rancher Desktop on Linux. Rancher Desktop, now in version 1.3, is a desktop-based container development environment for Windows, macOS, and Linux. It is a Kubernetes-based solution that runs a lightweight K3s cluster in a virtual machine. Rancher also includes the containerd and dockerd container runtimes. On macOS and Linux systems, the VM is hosted by QEMU; Windows support is provided by Windows Subsystem for Linux v2.

Rancher Desktop wraps established container toolchain components to create a battery-powered development experience. Its Kubernetes cluster and container runtime are packaged into its virtual machine. You can use the nerdctl CLI included with Rancher and Kubernetes-compatible tools like kubectl and Helm to interact with these components and launch new containers.

Linux is the best known and most used open source operating system. As an operating system, Linux is software that resides underneath all other software on a computer, receives requests from those programs, and forwards those requests to the computer’s hardware. Below we have mention the steps Install Rancher Desktop on Linux.

How to Install Rancher Desktop on Linux

Update the System

Step 1: Run the following command to refresh Ubuntu / Debian / Linux Mint system.

sudo apt update && sudo apt upgrade -y[ -f /var/run/reboot-required ] && sudo reboot -f

Step 2: Once the operating system has been updated, reboot your system.

Add the Rancher Desktop repository

Step 1: Import repository GPG key:

curl -s https://download.opensuse.org/repositories/isv:/Rancher:/stable/deb/Release.key | gpg –dearmor | sudo dd status=none of=/usr/share/keyrings/isv-rancher-stable-archive-keyring.gpg

Step 2: We will add Rancher Desktop repo to Ubuntu / Debian / Linux Mint system as follows:

echo ‘deb [signed-by=/usr/share/keyrings/isv-rancher-stable-archive-keyring.gpg] https://download.opensuse.org/repositories/isv:/Rancher:/stable/deb/ ./’ | sudo dd status=none of=/etc/apt/sources.list.d/isv-rancher-stable.list

Step 3: Run system update:

sudo apt update

Install Rancher Desktop

Step 1: By executing the following command you will install Rancher Desktop on Ubuntu / Debian / Linux Mint.

sudo apt install rancher-desktop

Step 2: Accept the installation prompt by type y and enter

Launch and Use Rancher Desktop

Step 1: To start Rancher Desktop, go to App Manager and type in Rancher Desktop.

Step 2: To open the application, click the icon. This takes you to the welcome screen, where you may select the Kubernetes version to use.

Step 3: A container runtime extracts and unpacks images from the registry. Namespaces for containers and the use of nerdctl are provided by Containerd.

Deploy Nginx Test Application

In this demo we will set up the NGINX ingress controller. Rancher Desktop is powered by K3s, making Traefik the default ingress controller for your Kubernetes cluster. However, in certain circumstances NGINX may be required or desired.

Step 1: To disable Traefik, uncheck Enable Traefik on the Kubernetes Settings page. For the modification to take effect, you may need to exit and restart Rancher Desktop.

Step 2: Now, run the following command to deploy the NGINX ingress controller using kubectl command:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/baremetal/deploy.yaml

Step 3: Wait for the ingress pods to be operational.

Step 4: Make a test deployment and service.

kubectl create deployment mydemo –image=nginx –port=80kubectl expose deployment mydemo

Step 5: Make a resource for ingress. A host that corresponds to localhost is used in the following command.

kubectl create ingress mydemo-localhost –class=nginx –rule=”mydemo/*=mydemo:80″

Step 6: To the ingress controller, forward a local port.

kubectl port-forward –namespace=ingress-nginx service/ingress-nginx-controller 8080:80

Final Words

We hope our article on how to Install Rancher Desktop on Ubuntu/Debian/Linux Mint will help you and resolve all your problems. A Rancher Desktop installation is ideal for developers who want to build containerized software without manually maintaining all components. You can build container images, deploy them to a Kubernetes cluster, and test workloads locally before going into production. If you want to know how to run Rancher Desktop on Linux distros then follow the steps mentioned above.

I hope you understand this article, How to Install Rancher Desktop on Linux.

James Hogan
James Hogan is a senior staff writer at Bollyinside, where he has been covering various topics, including laptops, gaming gear, keyboards, storage, and more. During that period, they evaluated hundreds of laptops and thousands of accessories and built a collection of entirely too many mechanical keyboards for their own use.

RELATED ARTICLES

Must Read

- Advertisment -