Guides
Run Docker and Compose per worktree
The debian:docker guest ships Docker Engine and Compose. Each session gets its own daemon, images and volumes, and closing the session discards them.
Open a Docker session
uncontainer session open --distro debian:docker --network full --publish 3000
uncontainer session exec -- docker version
uncontainer session exec -- docker compose versionOn first use, unContainer reads the release manifest, shows the image download size and asks Download now? [Y/n]. The host verifies the image’s SHA-256 before caching it. Later sessions in any worktree start from the cache, offline included.
Registry pulls follow the guest’s network policy. The defaultnoneblocks them. Use--network full, or allow each registry host you need.
Run a Compose project
The current guest kernel cannot create Compose’s default bridge network. Use host networking inside the guest and publish the ports you want to reach from your machine:
services:
api:
build: .
network_mode: hostuncontainer session exec -- docker compose up -d
uncontainer session listThe PORTS column shows which host port reaches guest port 3000 for this worktree.
Use it in CI and from agents
Without a terminal, a missing image needs explicit approval:
uncontainer run --distro debian:docker --yes -- docker compose versionProfiles accept "distro": "debian:docker", so a project can define a Docker profile once.
What closing removes
uncontainer session close discards the session’s daemon, pulled images, containers and volumes. The prepared base image stays in ~/.cache/uncontainer/images for other worktrees.