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

Комментарии • 27

  • @Cryptic_WisdomV2.2
    @Cryptic_WisdomV2.2 День назад

    Awesome

  • @MentalStackProject
    @MentalStackProject Год назад

    You save me, legend 💪🏼

  • @lolomimama193
    @lolomimama193 Год назад +4

    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.

  • @thewarrior9827
    @thewarrior9827 9 месяцев назад

    a new follower from France. I do love your work. keep doing. tks a lot

    • @be-devops
      @be-devops  9 месяцев назад

      Merci bq mon ami

  • @thomaspires1553
    @thomaspires1553 Год назад

    Thank u IT's bro. Works fine

  • @LaxmanMerupula
    @LaxmanMerupula 8 месяцев назад +1

    Thank you so much ... I appreciated your help

    • @be-devops
      @be-devops  8 месяцев назад

      You are so welcome

  • @shahanemakiyan6847
    @shahanemakiyan6847 8 месяцев назад +1

    great video! very helpful

    • @be-devops
      @be-devops  8 месяцев назад

      It is my pleasure. very welcome

  • @rajesht5420
    @rajesht5420 5 месяцев назад +1

    much informative video. Thank you for sharing your knowledge

  • @peanut-d-cat
    @peanut-d-cat 4 месяца назад +1

    thank you so much. it really helped me on my job.

  • @user-mn5lw6ru9l
    @user-mn5lw6ru9l 10 месяцев назад +1

    thank you so much

  • @vishwaranjansingh6111
    @vishwaranjansingh6111 Месяц назад

    great

  • @maddi1154
    @maddi1154 Год назад +1

    It's wonderful. can you post next steps also please.

    • @be-devops
      @be-devops  Год назад +2

      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.

  • @MatteoMi
    @MatteoMi 2 месяца назад

    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 👍

    • @be-devops
      @be-devops  2 месяца назад

      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

  • @Mr.rawJat
    @Mr.rawJat Год назад

    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))

    • @be-devops
      @be-devops  Год назад

      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

    • @ivonnenaranjo2649
      @ivonnenaranjo2649 11 месяцев назад

      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?

    • @be-devops
      @be-devops  11 месяцев назад

      @@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