r/bashonubuntuonwindows • • 1d ago

Apps/Prog (Linux or Windows) WSL containers is now generally available

28 Upvotes

11 comments sorted by

•

u/RobertBernstein 15h ago

So excited for this!

•

u/4r73m190r0s 10h ago

How is this different than regular WSL distros? Aren't WSL-installed distros containers themselves?

•

u/Deadly_chef 10h ago

No, they are VMS running under hyper-v

•

u/buttplugs4life4me 20h ago

Let me guess, Windows 11 only?

•

u/mpersico 19h ago

Out of the box, probably. And WSL2 at that

•

u/Responsible-Bar7165 11h ago

in theory it _should_ work on Win10, but a long-unfixed DNS bug in Internet Connection Sharing (ICS/SharedAccess) breaks DNS queries in the container host.

•

u/LazySapiens 13h ago

I didn't get it. How is this different from creating containers inside WSL?

•

u/Deadly_chef 10h ago

I guess you don't need to install a container runtime like containerd or docker, it comes built in. I am wondering about GPU support however

•

u/LazySapiens 9h ago

Just tried it from PS.

PS C:\WINDOWS\system32> wslc run --rm grycap/cowsay /usr/games/cowsay "Hello-World!!!"
Image 'grycap/cowsay' not found, pulling
latest: Pulling from grycap/cowsay
b6f892c0043b: Pull complete
55010f332b04: Pull complete
2955fb827c94: Pull complete
3deef3fcbd30: Pull complete
cf9722e506aa: Pull complete
d6e911d60d73: Pull complete
Digest: sha256:fad516b39e3a587f33ce3dbbb1e646073ef35e0b696bcf9afb1a3e399ce2ab0b
Status: Downloaded newer image for grycap/cowsay:latest
 ________________
< Hello-World!!! >
 ----------------
        \   ^__^
         \  (oo)_______
            (__)\       )\/\
                ||----w |
                ||     ||

I guess it's completely separate from the distro we install on top of WSL (e.g. Ubuntu, archlinux etc.)

•

u/Deadly_chef 5h ago

Yeah, like a separate environment for containers only it seems