<https://github.com/All-Hands-AI/OpenHands/pull/10...
# dev-pr-review
g
https://github.com/All-Hands-AI/OpenHands/pull/10485 PR to add ubuntu requirement for windows users to our Docs ty
c
šŸ° ! Did you test if that works?
g
Yes šŸ™ I worked extensively with OH today to run locally with Docker, WSL. Ubuntu was the missing piece to make it work
šŸ™Œ 1
I used OH to write the issue summary then OH to fix it in the docs 🤣
c
nice! auto merge it now
ty 1
l
Docker desktop creates its own distribution install (Ubuntu based) if it doesn't find a suitable one, I don't think you need to install WSL Ubuntu separately.
g
Didn't work for me Assuming Docker desktop will isn't always correct
l
It should ask whether you want to use hyper-v or WSL, but I don't know if the option will be missing without WSL installed. I'm pretty sure I didn't need to install a compatible distro (I mainly use WSL1) to get OH to work.
g
This was the summary created by OH and what I found in practiced; I can't run WSL without Ubuntu. The Docker WSL falls short 😢
Looking at the official OpenHands documentation at https://docs.all-hands.dev/usage/local-setup, there's a major documentation gap for Windows users:
āœ… What the Official Docs Say:
For Windows:
1. WSL: "Install WSL" and confirm version 2
2. Docker Desktop: Install and enable WSL 2 integration
3. Critical instruction: "The docker command below to start the app *must be run inside the WSL terminal*"
āŒ What's Missing (The Gap You Identified):
The docs assume that installing WSL automatically gives you a Linux distribution, but they never explicitly state:
1. āœ… Ubuntu is REQUIRED as a separate dependency
2. āœ… How to install Ubuntu specifically (
wsl --install -d Ubuntu
)
3. āœ… How to verify Ubuntu is installed (
wsl --list
)
4. āœ… That "WSL terminal" means Ubuntu terminal (not docker-desktop)
5. āœ… That typing just
wsl
might open the wrong distribution
🚨 The Problem:
• WSL = Just the framework/compatibility layer
• Ubuntu = The actual Linux operating system you need
• Official docs say: "run inside the WSL terminal"
• But never explain: You need Ubuntu installed to HAVE a WSL terminal
āœ… Your Experience Proves This:
1. You installed WSL āœ…
2. You installed Docker āœ…
3. You tried to run the Docker command āŒ
4. Problem: No Ubuntu = No proper "WSL terminal" to run it in
5. Typing
wsl
opened docker-desktop (wrong distribution)
šŸ“ This is Why Our Guides Are Valuable:
Our guides explicitly address this gap by:
• Making Ubuntu a separate, numbered dependency
• Explaining the WSL vs Ubuntu relationship
• Providing step-by-step Ubuntu installation
• Warning about the docker-desktop distribution issue
You're 100% right - Ubuntu is functionally REQUIRED for Windows users but the official documentation treats it as an assumed/automatic part of WSL installation, which often fails in practice.
I didn't run WSL 1 i was on WSL 2
Also i'm on windows 11 home; i believe only wsl is available
l
Hyper-v virtualizaton was the older option and required Windows Pro, I don't think it still has much use.
šŸ‘ 1
I'll try installing docker in a VM and see what it says, but I'm on a slow connection so it will probably download stuff until tomorrow. I'll let you know if it works with just its own internal distro, like it was before.
šŸ™Œ 1
ty 1
In the meanwhile, I read what OH has said. If you assume you have to run the command in the WSL terminal yes, you'll need a WSL distro, because the docker internal WSL distro is not exposed by default. Also, the docker command from the project page is not made for Windows, because it uses '\' as continuation character and tilde for the home folder. For the command to work on Powershell, you have to either remove the backslashes and merge the lines, or, alternatively, replace the backslashes with backticks. And also replace the tilde with $HOME, or docker won't be able to map it (the tilde in the command won't be expanded) and the settings/conversations will be lost when openhands is closed (the --rm parameter has docker remove the container once you terminate it). You can try yourself in a Powershell terminal, it should launch fine (this is the adjusted docker command):
Copy code
docker run -it --rm --pull=always -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.53-nikolaik -e LOG_ALL_EVENTS=true -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.openhands:/.openhands -p 3000:3000 --add-host host.docker.internal:host-gateway --name openhands-app docker.all-hands.dev/all-hands-ai/openhands:0.53
You could also uninstall the Ubuntu WSL distro, if you don't have anything important inside it, to have a definitive confirmation. I'll still let you know if it runs fine on my end though, likely tomorrow. I'll also give the uvx openhands serve command a try, in case it hasn't been tried on Windows yet, since I'm at it. That said, if users are having trouble figuring that out, either the page has to be updated with a windows command, or you can leave the Ubuntu (or any other WSL2 distro) suggestion, though AFAIK it's technically not required for OH to work.
g
Yeah running the docker command did not require Ubuntu it was only if it was option 1 it required Ubuntu because the disclaimer also requires it to be run in wsl. But yeah I'm afk now so I'll def follow up with you tomorrow with your findings ty Edit: yes about the black slashes versus the ticks is windows powershell. But the reason I went ahead with Ubuntu was because the docs do not support powershell and say to run it all is WSL in the pre reqs 🄲
l
Oh, you're right, I've never passed through that page because the docker command was available directly on the project page, similarly to other projects. By the way, before I forget, uvx openhands serve is not currently working right now, see https://github.com/All-Hands-AI/OpenHands/issues/10475 . You'll either have to run it from git directly, or wait until the package on pypi is updated.
ty 1
šŸ‘€ 1
g
because the docker command was available directly on the project page
Great feedback šŸ™ will think on if the windows WSL requirement is too hidden thinky spin
l
So, I tried both methods. The docker command runs fine from powershell (but needs conversion), the uvx command also runs fine from powershell (with the workaround I written on the #feedback channel). No separate Ubuntu WSL required in either case. Edit: Tried on Windows Home, just to be sure.
g
link to feedback channel workaround to not get lost Thank you for testing šŸ™Œ I have a couple other questions • Confirming you bypassed running wsl/ubuntu, just powershell only? • Do you think it's better to document the conversions to powershell VS asking users to add ubuntu? ā—¦ Initially i thought it would be better to keep powershell, but then after more thought (& seeing the request to run in WSL) ā—¦ 1. Most of our users aren't on windows (I think) ā—¦ 2. It might make the docs cleaner to require ubuntu for windows users so they can use the same commands without creating converted code samples for windows users. ā—¦ I think I made the decision around ubuntu in an attempt to streamline docs; I worry notating the conversion for power shell would be messier & more to maintain. We could make the code sample one line; that could be hard to read in the docs because scrolling horizontally isn't good UX. Definitely open and welcome your feedback šŸ¤
l
WSL is installed and used internally by Docker, but I didn't install an additional WSL distro to use. I just launched both commands from a Powershell prompt. I think you could add instructions to use WSL to the project page, and offer a Windows command variant in the local setup page. If a user can install Docker, then installing Ubuntu from the Microsoft Store shouldn't be a problem. Also, running the uvx openhands serve command from powershell requires installing matching .NET core and Powershell versions, which is likely more complicated.
šŸ‘€ 1
In case you need them for future reference, I made screenshots of all the steps (installing docker, running docker command, running uvx serve). May be useful if you're making a video.
šŸ‘ 1
g
Feel free to share šŸ‘ yeah the WSL used by Docker didn't have what's necessary to run these commands in the wsl provided by docker; that is why I installed ubuntu. 🄲
l