How to Install & Configure Rancher-Desktop on Windows (How to Run Docker & Kubernetes on Windows)
HTML-код
- Опубликовано: 1 янв 2023
- In this video we will learn how to install Rancher-Desktop on windows OS and configure WSL2 (Windows sub Linux) to let us run Docker containers and also manage them by Kubernetes and also it is a good replacement for Docker-Desktop.
Rancher Desktop is an all-in-one solution for container management on your desktop workstation. It provides an easily maintained Kubernetes installation that runs on your local windows machine and streamlines setting up containerized workflows in development as a Linux Dev Environment on Windows with WSL 2.
How does Rancher Desktop differ from Docker Desktop?
Choose the version of Kubernetes you want
Test how workloads handle Kubernetes upgrade
Choose between Containerd and Dockerd
Run stand-alone containers
Build, push, and pull container images
Simple Kubernetes Configuration
Run Docker containers on windows in easy way
==========================================
www.buymeacoffee.com/karaminejad
==========================================
🔗Enable the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
🔗Enable Virtual Machine feature
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
🔗Set WSL 2 as your default version
wsl --set-default-version 2
🔗check the wsl version
wsl -l -v
🔗 Solve Docker permission from the following resource:
github.com/rancher-sandbox/ra...
sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
And something needs to be done so $USER always runs in group `docker` on the `Ubuntu` WSL
sudo chown root:docker /var/run/docker.sock
sudo chmod g+w /var/run/docker.sock
"But the main command is this one:
"sudo chmod g+w /var/run/docker.sock" or "sudo chmod 666 /var/run/docker.sock"
WSL2
rancher desktop
kubernetes
docker
docker cli
docker on windows
kubernetes on windows
kubernetes locally
windows subsystem for Linux
Like | Share | Subscribe | Follow
Awesome
You save me, legend 💪🏼
Thank you very much. I tried to do an installation on my own but I didn't manage to get it to work. With your guide I could finally have it running in less than an hour.
I am glad to hear that
a new follower from France. I do love your work. keep doing. tks a lot
Merci bq mon ami
Thank u IT's bro. Works fine
Thank you so much ... I appreciated your help
You are so welcome
great video! very helpful
It is my pleasure. very welcome
much informative video. Thank you for sharing your knowledge
Thanks
thank you so much. it really helped me on my job.
Thanks
thank you so much
very welcome
great
It's wonderful. can you post next steps also please.
It was only installation Rancher-desktop to prepare your windows for running Docker containers and use Kubernetes cluster. If there is special in your mind let me know and I will make a video for it. but I am preparing a full course for docker and kubernetes from scratch.
A video I've found on google tells me to run a search on google to find the solution of the problems he founds! :D Right, kidding (just a bit, would make a video a lot shorter if you just show the solution without the search:) but still well explained and interesting 👍
Yes, i agree with you. But when you go into a class for teaching, some students get subject quickly like you and some get the subject late like me. so we need to look them in one level. For that reason always i think still there some one like me :) that need to know why and from where we found solution. :) many Thanks for your comment
I get below error, please help.
$ docker version
Client:
Version: 23.0.1-rd
API version: 1.42
Go version: go1.19.5
Git commit: 393499b
Built: Fri Feb 10 16:55:36 2023
OS/Arch: linux/amd64
Context: default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Running
$ sudo dockerd
gives below error:
ERRO[2023-04-20T17:14:37.063407088+05:30] failed to initialize a tracing processor "otlp" error="no OpenTelemetry endpoint: skip plugin"
...
WARN[2023-04-20T17:14:38.351509465+05:30] grpc: addrConn.createTransport failed to connect to {unix:///var/run/docker/containerd/containerd.sock 0 }. Err :connection error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting... module=grpc
failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1
(exit status 4))
to verify:
At first switch to root user with : *sudo -i*
then run : *docker version*
now if you do not see this error : *Cannot connect to the Docker daemon at unix:///var/run/docker.sock.* let me know to show you how fix it for your current user
Hi@@be-devops, I'm getting the same error could you show me hao to fix it? I'm connected as root
# docker version
Client:
Version: 20.10.25
API version: 1.41
Go version: go1.18.1
Git commit: 20.10.25-0ubuntu1~22.04.1
Built: Fri Jul 14 21:58:09 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
@@ivonnenaranjo2649
please the status of docker
# systemctl status docker
if it is not in running status run:
# systemctl start docker
and i am sure it will solve it
if not solved
run:
sudo dockerd