unContainer

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 -m
aarch64

unContainer 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?

runsession
LifetimeOne commandUntil you close it
StateDiscarded at exitFiles and processes kept between commands
Host editsEvery run sees a fresh copyEnter when you close and reopen
Use it forCI-style checks, linters, test suitesBuilds 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

Where to go next