Rancher Desktop: an alternative to Docker Desktop

  • January 25, 2024

Step 1: Installation of Rancher Desktop

rancher-desktop-1

Step 2: Pull/Build image in Rancher Desktop

  • The image being pulled can be: Local or from Docker Hub or any container registry.
  • It works with both: nerdctl or docker.
  1. Creating your local image:
    • Create a folder hello-world.
    • Create a Dockerfile with the below content:

      rancher-desktop-2

    • Open Command Prompt and run the command: docker build -t hello-world:latest.

      rancher-desktop-3

    • Check your Rancher Desktop in Images; you will be able to see the hello-world latest image.

      rancher-desktop-4

  2. Pull Image from Docker Hub:

    From Rancher Desktop:

    • Click on Add Image.
    • Enter the image to be pull: alpine:latest

      rancher-desktop-5

    • You can find the image added in the Images tab.
    • From CMD

      rancher-desktop-7

    • After executing the above command, you will be able to see the image in Rancher Desktop.

      rancher-desktop-8

Step 3: Docker Run

  • Use the command: docker run –rm hello-world:latest

    rancher-desktop-9

  • Issues or errors

  • If you encounter the issues below, please follow these steps:

    rancher-desktop-10

  • Open Cmd and run the command: wsl –update
  • Reopen Rancher Desktop, and the issue should be resolved.

— By Kavya Saxena