• foggy@lemmy.world
    link
    fedilink
    arrow-up
    74
    ·
    edit-2
    22 hours ago

    I don’t think anyone is a “wsl user” so much as they’ve found themselves in a position where the lowest friction solution is utilizing wsl for a given situation.

    Around 2019, even up until like 2022 if you wanted to run docker in windows, that was how to do it.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      4
      ·
      2 hours ago

      That’s where I was a few years ago, and then I switched back to proper Linux. I was only keeping Windows at all for games, but then most of the games I played started working fine on Linux (thank you, Valve).

      Plus, I tried doing some TensorFlow stuff with CUDA (Nvidia) GPU acceleration. In theory, you can do it in pure Windows, but nobody has bothered trying to do that. You’re on your own if you try it. The usual way is to do GPU passthrough to WSL. There have been three different ways to do that over the years, only one of which currently works. If you happen to Google a page that tells you one of the wrong ways, there’s a good chance you’ll need to reinstall to get it working the right way.

      Using pure Linux for this stuff is no problem. Just use Nvidia’s server drivers instead of gaming drivers. All the AI datacenters are using Nvidia GPUs on Linux, so Nvidia is highly motivated to make this work. Someday, Windows might be as easy to use as Linux.

    • coconut@programming.dev
      link
      fedilink
      English
      arrow-up
      28
      ·
      19 hours ago

      I learned the shell in wsl before I switched to Linux full time. I wasn’t trying to learn it intentionally. Just didn’t want to develop software on windows. It’s a great gateway drug that reduces friction by a lot.

    • folkrav@lemmy.ca
      link
      fedilink
      arrow-up
      8
      ·
      16 hours ago

      Pretty much my situation. Work stuff, Windows machine, but Linux/Docker workflow and I refuse to let go of my POSIX shell.

    • Narwhalrus@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      16 hours ago

      What’s the current best way to run docker on Windows?

      I’m still using wsl(2) for that in 2025 because it seems to be the path of least resistance on Win11.

      • foggy@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        15 hours ago

        That could very well be the best practice. I haven’t had to run docker in windows since then.