Get started
unContainer documentation
unContainer gives each Git worktree its own disposable Linux guest, running inside an ordinary process on your host. Use it for one-off checks, or keep a session so builds and services survive between commands.
Your first run
After installing the CLI, run a command from any project directory:
uncontainer run -- uname -munContainer copied the current directory into /work inside a Debian guest, ran the command there and passed back its output and exit code. When the command finished, the guest and everything it wrote were discarded.
Run or session?
run | session | |
|---|---|---|
| Lifetime | One command | Until you close it |
| State | Discarded at exit | Files and processes kept between commands |
| Host edits | Every run sees a fresh copy | Enter when you close and reopen |
| Use it for | CI-style checks, linters, test suites | Builds reused by tests, running services, agent handoffs |
Keep a session
A session belongs to the Git worktree you open it from. Commands run with session exec share its files, processes and localhost.
uncontainer session open --publish 3000
uncontainer session exec -- sh -c 'echo ready > build-status'
uncontainer session exec -- cat build-status
uncontainer session close