Rancher Desktop: an alternative to Docker Desktop
- January 25, 2024
Step 1: Installation of Rancher Desktop
- Install Rancher from the official website: https://rancherdesktop.io/
- Available for Mac, Linux, and Windows.
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.
- Creating your local image:
- Create a folder hello-world.
- Create a Dockerfile with the below content:
- Open Command Prompt and run the command: docker build -t hello-world:latest.
- Check your Rancher Desktop in Images; you will be able to see the hello-world latest image.
- Pull Image from Docker Hub:
From Rancher Desktop:
- Click on Add Image.
- Enter the image to be pull: alpine:latest
- You can find the image added in the Images tab.
- After executing the above command, you will be able to see the image in Rancher Desktop.
From CMD
Step 3: Docker Run
- Use the command: docker run –rm hello-world:latest
- If you encounter the issues below, please follow these steps:
- Open Cmd and run the command: wsl –update
- Reopen Rancher Desktop, and the issue should be resolved.
Issues or errors
— By Kavya Saxena