• Ucinorn
    link
    fedilink
    English
    arrow-up
    51
    ·
    1 year ago

    Not just OSX: anyone using WSL on windows is an offender too

    But as a WSL user, dockerised Dev environments are pretty incredible to have running on a windows machine.

    Does it required 64 gig of ram to run all my projects? Yes. Was it worth it? Also yes

    • qwop@programming.dev
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      1 year ago

      My experience using docker on windows has been pretty awful, it would randomly become completely unresponsive, sometimes taking 100% CPU in the process. Couldn’t stop it without restarting my computer. Tried reinstalling and various things, still no help. Only found a GitHub issue with hundreds of comments but no working workarounds/solutions.

      When it does work it still manages to feel… fragile, although maybe that’s just because of my experience with it breaking.

      • desmaraisp@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        You can cap the amount of cpu/memory docker is allowed to use. That helps a lot for those issues in my experience, although it still takes somewhat beefy machines to run docker in wsl

        • qwop@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          When it happens docker+wsl become completely unresponsive anyway though. Stopping containers fails, after closing docker desktop wsl.exe --shutdown still doesn’t work, only thing I’ve managed to stop the CPU usage is killing a bunch of things through task manager. (IIRC I tried setting a cap while trying the hyper-v backend to see if it was a wsl specific problem, but it didn’t help, can’t fully remember though).

          This is the issue that I think was closest to what I was seeing https://github.com/docker/for-win/issues/12968

          My workaround has been to start using GitHub codespaces for most dev stuff, it’s worked quite nicely for the things I’m working on at the moment.

      • Ucinorn
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I found the same thing until I started strictly controlling the resources each container could consume, and also changing to a much beefier machine. Running a single project with a few images were fine, but more than that and the WSL connection would randomly crash or become unresponsive.

        Databases in particular you need to watch: left unchecked they will absolutely hog RAM.

    • MXX53@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year ago

      I work in a windows environment at work and my VMs regularly flag the infrastructure firewalls. So WSL is my easiest way to at least be able to partially work in my environment of choice.

    • Phoenix@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I’ve used WSL to run deepspeed before because inexplicably microsoft didn’t develop it for their own platform…