MHN

Show HN: Devbox – Containers for better dev environments

116 points by TheRealBadDev·426 days ago·devbox.ar0.eu·Show in HN

I've been frustrated with dependency hell and clutter on my VPS from dev, so I built Devbox: a lightweight, open-source CLI tool that spins up isolated development environments using Docker. Each project runs in its own container, but your code stays in simple flat folders on the host machine—no messing with volumes or sync issues. Environments are disposable, so you can nuke and recreate them without losing your work. Key features:

  • Instant setup: `devbox init my-project` and you're in a fresh env with `devbox shell`.
  • Configurable via JSON: Define packages, services, and more in a `devbox.json` file. Share it in your repo for reproducible setups—teammates just run `devbox up`.
  • Docker-in-Docker by default: Build and run containers inside your env without extra config.
  • Host-friendly: Edit code directly on your machine; the container handles the runtime.
  • Templates for quick starts: Built-ins for Python, Node.js, Go, web dev, etc.
  • Advanced options: Port mapping, env vars, resource limits, and even mounting your dotfiles.

It's FOSS (MIT license), Linux-focused (Debian/Ubuntu, or WSL2 on Windows), and super easy to install: `curl -fsSL https://devbox.ar0.eu/install.sh | bash`.

Check out the launch page and docs at https://devbox.ar0.eu, or the repo at https://github.com/itzCozi/devbox. I'd love some feedback, stars, or contributions to help grow this into a solid community tool!

Add a comment on Hacker News →
2 of 63 comments
  1. I’ve been doing a version of this using bash scripts for a long time! Thanks for making it

  2. Hello!! All of your concerns have been addressed in a new commit of mine which is available to all of you now.

    Added GPU pass‑through, engine‑agnostic containers (DEVBOX_ENGINE for Podman/rootless), and alternate config filenames to avoid Jetify collisions—while keeping a tiny, CLI‑first flow that works outside VS Code.

    https://github.com/itzCozi/devbox/commit/d05c8980db7fb907f31...