Windows 10: Using WSL2 with Docker Desktop to run a Kubernetes cluster

Discus and support Using WSL2 with Docker Desktop to run a Kubernetes cluster in Windows 10 Customization to solve the problem; Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During the... Discussion in 'Windows 10 Customization' started by gstevens99, Jun 28, 2022.

  1. Using WSL2 with Docker Desktop to run a Kubernetes cluster


    Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During the last 2 month period of time I did not do any development of services in K8s and did not even start Docker Desktop.Now I am ready to start developing services that run in K8s which is hosted on Docker Desktop, with no Linux distro just as I did previously. But K8s does not start. No matter what kinds of remedies I try, K8s will not start.I am wondering if something changed and now I need to use a Linux distro? Is this question within the scope o

    :)
     
    gstevens99, Jun 28, 2022
    #1
  2. pparks1 Win User

    Kubernetes - any way of making it work on Windows

    Yes, we are moving towards Kubernetes at our office. We had moved to an on-prem hybrid Docker EE implementation, then we moved over to using AWS ECS......but shortly thereafter we decided that AWS EKS is really where we want to be.

    Our plan is not to run Windows in our EKS clusters. We are converting the .net apps to .net core to run them on Linux and then run them on Kubernetes.

    Kubernetes is a huge monster, as z3r010 noted. We use a bunch of bolt on tools too, like Istio, Rancher, and Helm to deploy the pods. We have written custom connectors and just about have our multicloud fully functional. OnPrem Kuberentes, AWS EKS and Azure Kubernetes.

    I'll be working on hundreds of Kubernetes deployments in the next 6-12 months.


    Today, you can enable it pretty easily in Docker Desktop to get used to it. You can also deploy a tool called minikube for playing with Kubernetes.
     
    pparks1, Jun 28, 2022
    #2
  3. Can't connect to Windows network services from WSL2

    I have Ubuntu 18.04 running in WSL2, from which I want to connect to Docker Desktop running on Windows.

    From cmd.exe I see that Docker service is listening on 127.0.0.1:2375:

    Code:
    C:\Windows\System32>curl 127.0.0.1:2375/info{"ID":"Z2IX:WLIX:FT2V:ZQYY:6222:M6Y6:EGZW:6D2G:EGVY:YABG:VYUM:MB2A","Containers":6,"ContainersRunning":2,"ContainersPaused":0...
    But in WSL2, I got this output by `docker info`:

    `ERROR: Cannot connect to the Docker daemon at tcp://127.0.0.1:2375. Is the docker daemon running?`

    No connection to 127.0.0.1:2375 from WLS2:

    Code:
    $ curl 127.0.0.1:2375curl: (7) Failed to connect to 127.0.0.1 port 2375: Connection refused
    The option "Expose daemon on tcp://localhost:2375 without TLS" is ticked.
     
    Mikhail Batcer, Jun 28, 2022
    #3
  4. Flaviu2 Win User

    Using WSL2 with Docker Desktop to run a Kubernetes cluster

    WSL2 for windows

    I have failed into installing WSL for Windows. I have read here: https://docs.microsoft.com/en-us/win.../install-win10 how to do it, and at step 4:


    1. Download the latest package:
      [COLOR=var(--text)][COLOR=var(--info-dark)] Note[/COLOR]
      If you're using an ARM64 machine, please download the ARM64 package instead. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo | find "System Type".
      [/COLOR]
    2. Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)

    I encountered:


    Using WSL2 with Docker Desktop to run a Kubernetes cluster [​IMG]


    and


    Using WSL2 with Docker Desktop to run a Kubernetes cluster [​IMG]


    What I did wrong ? I have the following W10 version:

    Using WSL2 with Docker Desktop to run a Kubernetes cluster [​IMG]


    Another question: am I in the the right forum ?
     
    Flaviu2, Jun 28, 2022
    #4
Thema:

Using WSL2 with Docker Desktop to run a Kubernetes cluster

Loading...
  1. Using WSL2 with Docker Desktop to run a Kubernetes cluster - Similar Threads - Using WSL2 Docker

  2. Blackscreen after installing docker ans wsl2 on windows

    in Windows 10 Software and Apps
    Blackscreen after installing docker ans wsl2 on windows: I installed docker and wsl And Ubuntu distro on it, after that it freezed and when i restart everything is super slow.I can only use cmd Does anybody knows what to do, im stuuuucked ......
  3. Using WSL2 with Docker Desktop to run a Kubernetes cluster

    in Windows 10 Gaming
    Using WSL2 with Docker Desktop to run a Kubernetes cluster: Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During the last 2 month period of time I did not do any development of services in K8s and did not even start Docker Desktop.Now I am ready...
  4. Using WSL2 with Docker Desktop to run a Kubernetes cluster

    in Windows 10 Software and Apps
    Using WSL2 with Docker Desktop to run a Kubernetes cluster: Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During the last 2 month period of time I did not do any development of services in K8s and did not even start Docker Desktop.Now I am ready...
  5. Using WSL2 with Docker Desktop

    in Windows 10 Gaming
    Using WSL2 with Docker Desktop: Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During that 2 month period of time I did not do development of services in K8s and did not even start Docker Desktop.Now I am ready to...
  6. Using WSL2 with Docker Desktop

    in Windows 10 Software and Apps
    Using WSL2 with Docker Desktop: Up until a couple months ago I was able to use Docker Desktop and WSL2 to run Kubernetes WITHOUT having a Linux distro on my dev system. During that 2 month period of time I did not do development of services in K8s and did not even start Docker Desktop.Now I am ready to...
  7. HYPERVISOR_ERROR, WHEA_UNCORRECTABLE_ERROR with Hyper-V + Docker + WSL2

    in Windows 10 Gaming
    HYPERVISOR_ERROR, WHEA_UNCORRECTABLE_ERROR with Hyper-V + Docker + WSL2: I have been having BSODs over the last 3 months or so with the error codes I provided in the title.I use VSCode for coding along with Docker Desktop and WSL2 to run Ubuntu 22. 04. on Windows.I have attached the DxDiag and dump files from the Windows\Minidump folder in the...
  8. HYPERVISOR_ERROR, WHEA_UNCORRECTABLE_ERROR with Hyper-V + Docker + WSL2

    in Windows 10 Software and Apps
    HYPERVISOR_ERROR, WHEA_UNCORRECTABLE_ERROR with Hyper-V + Docker + WSL2: I have been having BSODs over the last 3 months or so with the error codes I provided in the title.I use VSCode for coding along with Docker Desktop and WSL2 to run Ubuntu 22. 04. on Windows.I have attached the DxDiag and dump files from the Windows\Minidump folder in the...
  9. Docker on WSL2 Ubuntu 20.04

    in Windows 10 Ask Insider
    Docker on WSL2 Ubuntu 20.04: How can I install docker? I tried $ sudo apt install docker.io Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: aufs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils The following NEW packages will be...
  10. Accessing tftpd in wsl2 docker container

    in Windows 10 Network and Sharing
    Accessing tftpd in wsl2 docker container: Problem: Connect to tftpd in Docker from WSL2. Client tftp is running inside wsl2 ubuntu Server is tftpd-hpa running inside docker for windows started from wsl2 ubuntu Windows firewall should be irrelevant, however it is also disabled completelty Summary: I can udp...