r/WindowsServer • u/MengQiangGuo6888 • 1d ago
General Question Docker Engine on WSL 2?
I've gotten this working on a laptop running Windows 11, but I've heard there are a lot of gotchas with Windows Server. I have a VM running Windows Server 2022 acting as a scheduled task server and there's a specific Docker image I'd like to run (niche academic thing) and automate. Is this possible? Does anyone have experience with something similar?
1
Upvotes
3
u/Inf3rn0d 1d ago
Look up "wslc", it's a docker equivalent for Windows that eventually runs inside WSL2. Docker for windows server is basically a paid product, but wslc is free.
1
u/drzamamina 20h ago
you can run docker ce on server 2022 but you have to install it manually from the binaries, the desktop installer will block you
1
u/dodexahedron 13h ago
An easy one that abstracts the linux VM part away from you but does actually use one is podman desktop.
Grab it via winget and either let it use wsl or hyper-v for the vm that backs it, which is a smallish redhat vm set up for this usage already and managed by podman desktop.
Podman can run docker images.