OpenHands:ubuntu container - chunhualiao/public-docs GitHub Wiki
To modify the OpenHands Docker command with the two specific changes you asked for:
⸻
✅ 1. Use Ubuntu 14.04 as the container base
You cannot directly change the base OS of an existing image (like openhands:0.38) unless you rebuild it yourself using ubuntu:14.04 as a base. But if your goal is just to run a container with Ubuntu 14.04, separate from OpenHands, you can do this:
docker run -it ubuntu:14.04
If you’re asking to force OpenHands to run within a Ubuntu 14.04 base, that’s not straightforward — the OpenHands image already includes its environment. You’d need to: • Create a new Dockerfile • Start from ubuntu:14.04 • Reinstall all necessary OpenHands dependencies and tools • Copy or install OpenHands into that
👉 Conclusion: You cannot just change the base image of OpenHands to Ubuntu 14.04 via docker run. You must rebuild the image.
⸻
✅ 2. Make /workspace inside the container accessible from your Mac host
To do this, you need to bind-mount a host folder to /workspace in the container.
Let’s say you want to link your Mac folder ~/openhands-workspace to /workspace inside the container. Modify the -v option like this:
-v ~/openhands-workspace:/workspace
⸻
✅ Final docker run command (with accessible /workspace)
docker run -it --rm --pull=always
-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.38-nikolaik
-e LOG_ALL_EVENTS=true
-v /var/run/docker.sock:/var/run/docker.sock
-v ~/.openhands-state:/.openhands-state
-v ~/openhands-workspace:/workspace
-p 3000:3000
--add-host host.docker.internal:host-gateway
--name openhands-app
docker.all-hands.dev/all-hands-ai/openhands:0.38
⸻
Let me know if you must get it to run on Ubuntu 14.04 — I can help with writing a custom Dockerfile to rebuild the OpenHands environment on that base.