Chapters

Chapter 19

Managed tools

Some settings need a tool inside the sandbox to be useful: "GitHub as you" is best with gh, SSH agent forwarding needs an ssh client and GitHub's host keys, tmux sessions need tmux.

On this page
  1. Tools Dozable manages
  2. When it runs
  3. See it, set it up again
  4. Limits and notes

Some settings need a tool inside the sandbox to be useful: "GitHub as you" is best with gh, SSH agent forwarding needs an ssh client and GitHub's host keys, tmux sessions need tmux. Dozable puts them there for you — the managed tools: tools Dozable supports natively, each chosen by its own settings, added to each sandbox and never baked into an image. They support the agent a sandbox runs (its recipe's); they are not it. It works on every base (Debian, Ubuntu, Alpine, your own Dockerfile) and never rebuilds an image. (doz tools, doz doctor and Resources still call them the tools layer.)

Tools Dozable manages#

toolwhenhow it gets there
gh (GitHub CLI)GitHub as you is ondownloaded once to this Mac (a pinned version, its sha256 checked), then copied into the sandbox — the sandbox's network is not used. Removed again when GitHub as you is turned off.
ssh clientSSH agent forwarding is onapt or apk, through the proxy, when the image lacks it
github.com's host keysSSH agent forwarding is onGitHub's published keys, built into Dozable, written to /etc/ssh/ssh_known_hosts — so ssh -T git@github.com never asks "are you sure?". Removed when forwarding is turned off.
tmux 3.8sessions.tmux is onbuilt into Dozable (a static build, from source files whose checksums are pinned), copied into the sandbox — no download, and the same tmux on every base, whatever the distribution ships (Debian 12 has 3.3a, Ubuntu 24.04 and Alpine 3.20 have 3.4). Kept when you turn tmux off: a session still running in it is ended with it.
git, curl, ca-certificatesalwaysapt or apk, through the proxy, when missing (every Dozable image already has them; a plain lab sandbox may not)

gh lives at /usr/local/lib/doz/bin/gh (first on every session's PATH) and is linked as /usr/local/bin/gh unless something else is already there. A gh you installed yourself is never touched. It is signed in through the same placeholder as git: gh auth status shows your login, and gh repo view, gh pr list and the rest work — read-only unless Push to GitHub is on.

Dozable's tmux lives at /usr/local/lib/doz/bin/tmux and is linked as /usr/local/bin/tmux unless something else is already there, so tmux ls or tmux attach in a sandbox talks to a session's tmux with the same version. The image's own tmux (the one in /usr/bin) is left as it is. A session that was already running in it when Dozable's tmux arrived keeps it until it ends.

When it runs#

  • The first start of a sandbox sets its managed tools up and shows each as a step (on a terminal with -v, or with --progress plain; by default only a tool that fails is shown):

    text
    ✓ tools: gh 2.102.0 on this Mac (downloaded once, sha256 checked)
    ✓ tools: installing ssh client with apk, through the proxy — 3.8 s
    ✓ tools: gh 2.102.0 — for GitHub as you (gh 2.102.0, from Dozable's cache on the Mac)
    ✓ tools: ssh client — for SSH agent forwarding (from apk)
    ✓ tools: github.com host keys — for SSH agent forwarding (github.com's published keys in /etc/ssh/ssh_known_hosts)
    ✓ tools: git — always (already in the image)

    doz up, doz new, doz create --start and Quick add show the same lines.

  • In the dashboard's New sandbox wizard, the last step is Setting up tools: each tool with why it is there, the start's progress, then ✓ or ✗. A failure never stops you — Retry, or Continue anyway, then Open the sandbox.

  • Every later start and wake checks them again, quietly: a setting you turned on while the sandbox slept is delivered then, one you turned off is removed. You see a notice only when something changed or failed. Changing a setting while the sandbox runs applies at once.

  • Never fatal. An offline Mac, a refused download or a package mirror that doesn't answer is a ✗ with its reason; the sandbox starts anyway, and the next start or wake tries again.

See it, set it up again#

sh
doz tools my-app             # each tool, why, its state, and what this Mac keeps
doz tools my-app --apply     # set it up again now (the sandbox must be running)
text
Tools layer of my-app — from its settings:
  ✓ gh 2.102.0             for GitHub as you          gh 2.102.0
  ✓ ssh client             for SSH agent forwarding   already in the image
  ✓ github.com host keys   for SSH agent forwarding   github.com's published keys
  ✓ git                    always                     already in the image
On this Mac: gh 2.102.0 (37 MB, sha256 7862c86c72f4…) — …/tools/gh/2.102.0/gh

doz doctor has a tools layer line; Resources lists the cache as tools layer (deleting it is safe: it is downloaded again the next time a sandbox needs it).

Limits and notes#

  • gh is pinned (2.102.0) and updated with Dozable, not by itself. So is tmux (3.8).
  • Packages come from your image's own mirrors (Debian, Ubuntu, Alpine) — allowed by the Install software › System packages permission, on in Standard. With a network that can't reach them (--network none), a missing package is reported, not installed.
  • Images are never rebuilt for the managed tools, and baking an image never adds them: a baked image holds exactly its recipe.

See also: GitHub as you, Terminals and sessions, Resources and disk space.

Edit this page on GitHub · Chapter 19 of 50